3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0, $t = -microtime(TRUE); $i < 10000; $i++) { $foo = create_function('stdClass $a, $b = 1', ''); } echo $t + microtime(TRUE), PHP_EOL; for ($i = 0, $t = -microtime(TRUE); $i < 10000; $i++) { $foo = NULL; eval('$foo = function (stdClass $a, $b = 1) {};'); } echo $t + microtime(TRUE);

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)
7.4.00.0110.01015.13
7.3.120.0040.01414.95
7.3.110.0130.00615.31
7.3.100.0120.01015.32
7.3.90.0040.01415.18
7.3.80.0030.01015.23
7.3.70.0070.01014.85
7.3.60.0030.01315.01
7.3.50.0070.00714.93
7.3.40.0000.01615.18
7.3.30.0040.01214.95
7.3.20.0090.00916.65
7.3.10.0080.00616.56
7.3.00.0100.00716.77
7.2.250.0070.01715.08
7.2.240.0100.01315.14
7.2.230.0070.01115.48
7.2.220.0070.00715.08
7.2.210.0100.01015.21
7.2.200.0040.01115.18
7.2.190.0060.01215.46
7.2.180.0060.00915.19
7.2.170.0030.01315.26
7.2.00.0060.00919.06
7.1.330.0130.08626.26
7.1.320.0000.09625.95
7.1.310.0070.09725.97
7.1.300.0070.09526.09
7.1.290.0130.09426.10
7.1.280.0000.11026.15
7.1.270.0030.09625.98
7.1.260.0130.08425.70
7.1.70.0000.06027.45
7.1.60.0070.11327.70
7.1.50.0170.07127.49
7.1.00.0030.19032.60
7.0.200.0170.06226.84
7.0.140.0030.17332.35
7.0.70.0030.09732.29
7.0.60.0070.08732.07
7.0.50.0000.11032.38
7.0.40.0000.09320.60
7.0.30.0000.10720.53
7.0.20.0000.09320.53
7.0.10.0030.09320.48
7.0.00.0030.09320.44
5.6.280.0100.20331.55
5.6.220.0130.11031.08
5.6.210.0030.11730.90
5.6.200.0030.11331.61
5.6.190.0030.11731.59
5.6.180.0030.13031.60
5.6.170.0070.11731.36
5.6.160.0030.09331.53
5.6.150.0070.09031.43
5.6.140.0000.09731.33
5.6.130.0000.09331.46
5.6.120.0030.16731.41
5.6.110.0070.12731.51
5.6.100.0130.15731.44
5.6.90.0070.11031.54
5.6.80.0070.09730.74
5.6.70.0030.10730.84
5.6.60.0070.09030.81
5.6.50.0170.09330.93
5.6.40.0070.11730.79
5.6.30.0070.09030.96
5.6.20.0000.12730.91
5.6.10.0030.11030.86
5.6.00.0100.08730.85
5.5.360.0070.15331.24
5.5.350.0030.11731.36
5.5.340.0070.10731.93
5.5.330.0070.10732.07
5.5.320.0070.12332.09
5.5.310.0070.14332.02
5.5.300.0000.09331.94
5.5.290.0070.09031.91
5.5.280.0070.11331.90
5.5.270.0030.13331.93
5.5.260.0130.14031.98
5.5.250.0100.12731.61
5.5.240.0030.10031.35
5.5.230.0100.13331.28
5.5.220.0070.09331.34
5.5.210.0100.09731.33
5.5.200.0030.10331.32
5.5.190.0100.10731.28
5.5.180.0030.09731.30
5.5.160.0070.10731.27
5.5.150.0070.09731.23
5.5.140.0100.13731.32
5.5.130.0030.10331.31
5.5.120.0070.11331.16
5.5.110.0130.10331.25
5.5.100.0130.09331.20
5.5.90.0070.09331.22
5.5.80.0030.12731.23
5.5.70.0030.12030.96
5.5.60.0000.10031.16
5.5.50.0030.10731.19
5.5.40.0100.08731.13
5.5.30.0100.11331.17
5.5.20.0000.10031.13
5.5.10.0030.11031.21
5.5.00.0130.13031.20
5.4.450.0070.08730.11
5.4.440.0130.15730.17
5.4.430.0230.10030.51
5.4.420.0070.16030.38
5.4.410.0130.13030.05
5.4.400.0030.10030.01
5.4.390.0030.10330.04
5.4.380.0030.12030.02
5.4.370.0070.09330.12
5.4.360.0070.11030.07
5.4.350.0070.11029.92
5.4.340.0130.08029.90
5.4.320.0030.11030.04
5.4.310.0100.10730.05
5.4.300.0100.11029.89
5.4.290.0070.10730.21
5.4.280.0070.14030.02
5.4.270.0070.12329.89
5.4.260.0030.10329.90
5.4.250.0030.10729.95
5.4.240.0070.13730.10
5.4.230.0070.09330.06
5.4.220.0030.11029.90
5.4.210.0030.11030.06
5.4.200.0030.10730.18
5.4.190.0100.11730.11
5.4.180.0070.14330.02
5.4.170.0030.10729.82
5.4.160.0070.09029.94
5.4.150.0130.08329.97
5.4.140.0230.14027.25
5.4.130.0070.14327.26
5.4.120.0030.09027.34
5.4.110.0070.11027.34
5.4.100.0030.13327.54
5.4.90.0070.11027.15
5.4.80.0000.09727.17
5.4.70.0000.11327.20
5.4.60.0030.12027.34
5.4.50.0070.10027.13
5.4.40.0030.09027.21
5.4.30.0100.11327.21
5.4.20.0130.10327.25
5.4.10.0000.11027.30
5.4.00.0030.09026.69
5.3.290.0070.10029.28
5.3.280.0030.10029.11
5.3.270.0100.10728.96
5.3.260.0030.09728.97
5.3.250.0100.09029.11
5.3.240.0000.09029.17
5.3.230.0000.10028.94
5.3.220.0030.10329.13
5.3.210.0000.09729.10
5.3.200.0070.10329.00
5.3.190.0030.10729.06
5.3.180.0100.09329.05
5.3.170.0100.09329.10
5.3.160.0030.12328.91
5.3.150.0030.09328.91
5.3.140.0100.09028.92
5.3.130.0000.11728.93
5.3.120.0100.09329.09
5.3.110.0130.08028.90
5.3.100.0000.11728.52
5.3.90.0030.09028.47
5.3.80.0030.10028.29
5.3.70.0070.09028.22
5.3.60.0030.10028.41
5.3.50.0170.10328.25
5.3.40.3800.11028.31
5.3.30.1230.11328.46
5.3.20.0070.09728.04
5.3.10.0030.10027.95
5.3.00.0130.09728.00

preferences:
29.23 ms | 401 KiB | 5 Q