3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $x; $i = 0; $tmp = ''; while($i < 100000) { $tmp .= 'a'; ++$i; } $x = array_fill(5, 1000, $tmp); unset($i, $tmp); function Test3_4() { global $x; $t = microtime(true); for ($i=0; $i return (microtime(true) - $t); } function Test3_End() { global $x; unset($x); } Test3_End(); $returnData = Test3_4(); $microtime = ($returnData * 1000000); echo "execution time is ".$microtime." micro seconds."; ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.350.0080.03412.03
5.4.340.0100.04912.03
5.4.320.0090.05412.52
5.4.310.0070.04412.52
5.4.300.0080.04012.52
5.4.290.0060.04012.52
5.4.280.0090.04812.41
5.4.270.0130.04512.41
5.4.260.0110.03712.41
5.4.250.0080.03912.41
5.4.240.0070.03812.41
5.4.230.0110.04612.40
5.4.220.0080.04212.40
5.4.210.0040.04212.40
5.4.200.0090.03712.40
5.4.190.0060.04012.40
5.4.180.0090.04912.39
5.4.170.0120.05912.41
5.4.160.0100.04612.40
5.4.150.0110.07212.39
5.4.140.0100.07912.09
5.4.130.0060.04512.07
5.4.120.0090.04212.04
5.4.110.0100.04612.03
5.4.100.0060.04112.03
5.4.90.0050.04012.03
5.4.80.0120.04612.03
5.4.70.0060.03712.03
5.4.60.0090.03912.02
5.4.50.0040.03712.02
5.4.40.0050.03412.02
5.4.30.0050.03612.01
5.4.20.0070.03812.01
5.4.10.0060.03512.01
5.4.00.0060.03711.50
5.3.290.0090.03712.80
5.3.280.0040.03912.71
5.3.270.0130.05412.73
5.3.260.0130.06312.72
5.3.250.0150.06212.72
5.3.240.0110.04212.72
5.3.230.0080.03912.71
5.3.220.0100.04312.68
5.3.210.0050.04912.68
5.3.200.0100.04112.68
5.3.190.0120.03712.68
5.3.180.0110.04212.67
5.3.170.0220.09612.67
5.3.160.0160.06712.67
5.3.150.0120.06112.67
5.3.140.0120.08512.66
5.3.130.0230.10512.66
5.3.120.0070.04212.66
5.3.110.0120.04312.65
5.3.100.0070.03912.13
5.3.90.0080.04712.11
5.3.80.0060.05012.10
5.3.70.0160.07912.10
5.3.60.0210.09612.09
5.3.50.0070.04312.04
5.3.40.0050.04312.03
5.3.30.0130.04511.98
5.3.20.0130.07711.77
5.3.10.0110.08211.73
5.3.00.0070.04011.73
5.2.170.0070.0329.22
5.2.160.0120.0349.22
5.2.150.0050.0349.22
5.2.140.0150.0669.22
5.2.130.0060.0459.18
5.2.120.0110.0489.18
5.2.110.0110.0399.18
5.2.100.0090.0419.18
5.2.90.0110.0389.18
5.2.80.0080.0579.17
5.2.70.0070.0569.18
5.2.60.0110.0459.13
5.2.50.0180.0699.10
5.2.40.0080.0369.08
5.2.30.0090.0379.05
5.2.20.0040.0399.04
5.2.10.0140.0388.94
5.2.00.0080.0368.80
5.1.60.0490.1078.10
5.1.50.0040.0328.09
5.1.40.0040.0298.07
5.1.30.0130.0338.41
5.1.20.0050.0388.44
5.1.10.0050.0358.17
5.1.00.0130.0318.17
5.0.50.0050.0276.65
5.0.40.0040.0206.51
5.0.30.0040.0356.32
5.0.20.0040.0306.28
5.0.10.0120.0206.27
5.0.00.0050.0326.26
4.4.90.0030.0184.78
4.4.80.0070.0144.75
4.4.70.0040.0164.75
4.4.60.0040.0154.76
4.4.50.0000.0204.77
4.4.40.0060.0274.71
4.4.30.0040.0164.76
4.4.20.0050.0164.84
4.4.10.0040.0344.85
4.4.00.0040.0254.76
4.3.110.0030.0194.66
4.3.100.0020.0154.66
4.3.90.0050.0264.63
4.3.80.0050.0264.58
4.3.70.0060.0134.63
4.3.60.0050.0164.63
4.3.50.0020.0224.63
4.3.40.0030.0384.54
4.3.30.0070.0183.30
4.3.20.0080.0143.29
4.3.10.0030.0283.24
4.3.00.0030.0207.24

preferences:
146 ms | 1394 KiB | 7 Q