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);

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.2.00.0070.01019.55
7.1.70.0100.03825.53
7.1.60.0360.05043.67
7.1.50.0100.03425.55
7.1.00.0100.12730.70
7.0.200.0100.05825.19
7.0.140.0070.12730.28
7.0.70.0070.11729.96
7.0.60.0030.10730.02
7.0.50.0100.11730.39
7.0.40.0200.11320.55
7.0.30.0070.12320.44
7.0.20.0000.12720.50
7.0.10.0070.11020.89
7.0.00.0030.12720.54
5.6.280.0100.15030.88
5.6.220.0170.13030.41
5.6.210.0170.10030.44
5.6.200.0070.14331.08
5.6.190.0070.13031.04
5.6.180.0170.12730.69
5.6.170.0200.13330.79
5.6.160.0200.12330.95
5.6.150.0130.12030.94
5.6.140.0030.14730.77
5.6.130.0130.13330.84
5.6.120.0170.12730.96
5.6.110.0130.12730.84
5.6.100.0100.13330.83
5.6.90.0170.12730.77
5.6.80.0070.07730.18
5.6.70.0100.07330.34
5.6.60.0130.13030.24
5.6.50.0200.11730.45
5.6.40.0130.11730.31
5.6.30.0170.13030.33
5.6.20.0070.13330.50
5.6.10.0170.13730.52
5.6.00.0130.12030.22
5.5.360.0100.13730.32
5.5.350.0100.12030.20
5.5.340.0070.12030.74
5.5.330.0030.14030.64
5.5.320.0030.13030.75
5.5.310.0100.13330.61
5.5.300.0070.13330.59
5.5.290.0130.12030.90
5.5.280.0200.11730.69
5.5.270.0100.12730.91
5.5.260.0100.13030.86
5.5.250.0130.11330.50
5.5.240.0070.07030.20
5.5.230.0130.12330.33
5.5.220.0170.13030.24
5.5.210.0170.12030.18
5.5.200.0200.12330.33
5.5.190.0100.11030.25
5.5.180.0000.10730.26
5.5.160.0100.13330.22
5.5.150.0000.11030.30
5.5.140.0130.08330.21
5.5.130.0030.13730.26
5.5.120.0130.11330.21
5.5.110.0100.13730.16
5.5.100.0130.12730.11
5.5.90.0070.13330.21
5.5.80.0070.09329.99
5.5.70.0030.12730.07
5.5.60.0070.12730.10
5.5.50.0030.07730.15
5.5.40.0100.10030.09
5.5.30.0000.07730.09
5.5.20.0030.07330.13
5.5.10.0070.12330.04
5.5.00.0070.10730.10
5.4.450.0070.09729.14
5.4.440.0030.14029.31
5.4.430.0170.12029.14
5.4.420.0200.11029.35
5.4.410.0100.12729.13
5.4.400.0130.08329.08
5.4.390.0130.10029.00
5.4.380.0130.09329.03
5.4.370.0030.13728.86
5.4.360.0100.12728.88
5.4.350.0030.12329.05
5.4.340.0100.12729.16
5.4.320.0100.11729.03
5.4.310.0100.12328.98
5.4.300.0070.10329.18
5.4.290.0100.11329.04
5.4.280.0170.13028.87
5.4.270.0130.12029.02
5.4.260.0030.12029.00
5.4.250.0100.09728.85
5.4.240.0030.11328.98
5.4.230.0030.08729.02
5.4.220.0200.11729.07
5.4.210.0030.11028.98
5.4.200.0030.13329.17
5.4.190.0030.09328.95
5.4.180.0070.07329.14
5.4.170.0000.08029.20
5.4.160.0000.08728.90
5.4.150.0170.12328.93
5.4.140.0000.12326.16
5.4.130.0100.09326.20
5.4.120.0000.08026.28
5.4.110.0100.12326.31
5.4.100.0070.12726.48
5.4.90.0130.12026.16
5.4.80.0200.10726.16
5.4.70.0070.10726.11
5.4.60.0000.09026.20
5.4.50.0030.11726.22
5.4.40.0100.12326.07
5.4.30.0030.07026.06
5.4.20.0030.07726.27
5.4.10.0030.07026.12
5.4.00.0030.09025.86
5.3.290.0100.11729.11
5.3.280.0070.12328.91
5.3.270.0100.12028.95
5.3.260.0030.13328.93
5.3.250.0130.12028.98
5.3.240.0100.12028.93
5.3.230.0000.07729.10
5.3.220.0270.11328.90
5.3.210.0100.11328.99
5.3.200.0030.10728.90
5.3.190.0200.12328.95
5.3.180.0070.10028.93
5.3.170.0100.13028.86
5.3.160.0070.12328.84
5.3.150.0070.08728.99
5.3.140.0130.09728.94
5.3.130.0070.11328.91
5.3.120.0070.07028.89
5.3.110.0100.08728.91
5.3.100.0030.07728.40
5.3.90.0000.10028.70
5.3.80.0030.12328.38
5.3.70.0100.10728.35
5.3.60.0000.07728.42
5.3.50.0000.08028.23
5.3.40.0030.07328.23
5.3.30.0170.11028.36
5.3.20.0100.06328.01
5.3.10.0170.12728.07
5.3.00.0100.12028.00
5.2.170.0030.07025.81
5.2.160.0170.06025.77
5.2.150.0030.07725.89
5.2.140.0070.06325.70
5.2.130.0070.09325.71
5.2.120.0000.12325.71
5.2.110.0130.11325.89
5.2.100.0170.12026.20
5.2.90.0100.09725.60
5.2.80.0070.12025.83
5.2.70.0030.10025.73
5.2.60.0100.12325.79
5.2.50.0170.11725.77
5.2.40.0100.12325.60
5.2.30.0000.13725.62
5.2.20.0070.12025.59
5.2.10.0100.07325.56
5.2.00.0030.07025.46
5.1.60.0100.07026.75
5.1.50.0070.09326.74
5.1.40.0100.06326.72
5.1.30.0130.10327.08
5.1.20.0170.11727.15
5.1.10.0030.08726.82
5.1.00.0030.09026.82
5.0.50.0130.06023.54
5.0.40.0000.07023.18
5.0.30.0000.07723.14
5.0.20.0030.09323.18
5.0.10.0100.05323.06
5.0.00.0070.08723.16
4.4.90.0000.04015.75
4.4.80.0000.04015.75
4.4.70.0030.01315.75
4.4.60.0030.01315.75
4.4.50.0070.02715.75
4.4.40.0030.03315.75
4.4.30.0000.04015.75
4.4.20.0000.03715.75
4.4.10.0000.02015.75
4.4.00.0000.03715.75
4.3.110.0000.02015.75
4.3.100.0030.01715.75
4.3.90.0000.02015.75
4.3.80.0000.02715.75
4.3.70.0030.02015.75
4.3.60.0000.01715.75
4.3.50.0000.02015.75
4.3.40.0000.03315.75
4.3.30.0030.02015.75
4.3.20.0030.01315.75
4.3.10.0000.01715.75
4.3.00.0070.03315.75

preferences:
33.78 ms | 401 KiB | 5 Q