Method 1: fatal error: runtime: out of memory Method 2: 4m4.408615591s Method 3: Total time : 40m Method 4: 52s