3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test() { function foo($x) { return $x; } } $test = new Test(); [$test, 'foo'](42);

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.6.150.0100.08018.27
5.6.140.0030.03718.15
5.6.130.0070.08718.11
5.6.120.0100.07021.01
5.6.110.0130.08020.93
5.6.100.0100.07321.02
5.6.90.0070.07021.11
5.6.80.0070.06020.42
5.5.300.0170.05317.95
5.5.290.0030.04718.05
5.5.280.0030.04720.89
5.5.270.0070.07720.67
5.5.260.0170.08020.64
5.5.250.0130.06320.62
5.5.240.0230.03320.22
5.4.450.0200.05719.34
5.4.440.0100.06319.38
5.4.430.0470.03319.63
5.4.420.0170.07019.58
5.4.410.0130.06019.17
5.4.400.0270.04719.01
5.4.390.0130.05719.16
5.4.380.0200.05019.38
5.4.370.0200.04719.14
5.4.360.0070.06319.01
5.4.350.0270.06019.12
5.4.340.0170.05319.16
5.4.320.0270.04319.29
5.4.310.0230.04719.28
5.4.300.0130.05319.05
5.4.290.0070.06319.05
5.4.280.0200.05019.11
5.4.270.0230.04719.25
5.4.260.0200.04718.85
5.4.250.0170.05019.00
5.4.240.0130.05319.37
5.4.230.0270.04319.00
5.4.220.0070.06018.97
5.4.210.0100.05719.25
5.4.200.0170.05019.30
5.4.190.0200.05019.13
5.4.180.0130.05719.13
5.4.170.0200.05019.27
5.4.160.0300.03719.12
5.4.150.0030.06719.26
5.4.140.0130.05316.58
5.4.130.0200.04316.30
5.4.120.0170.04716.53
5.4.110.0230.04716.61
5.4.100.0170.05016.60
5.4.90.0170.04316.57
5.4.80.0070.05716.42
5.4.70.0230.04716.40
5.4.60.0300.03716.58
5.4.50.0170.04716.42
5.4.40.0270.04016.42
5.4.30.0200.04316.42
5.4.20.0170.06016.44
5.4.10.0100.05716.24
5.4.00.0000.05315.86
5.3.290.0200.05014.57
5.3.280.0130.05014.67
5.3.270.0200.04714.53
5.3.260.0330.03714.65
5.3.250.0230.04314.60
5.3.240.0130.05314.82
5.3.230.0200.04714.65
5.3.220.0230.05714.72
5.3.210.0130.05314.55
5.3.200.0270.04314.47
5.3.190.0330.05314.57
5.3.180.0230.04014.56
5.3.170.0230.04714.53
5.3.160.0100.05714.55
5.3.150.0170.06714.57
5.3.140.0070.07314.46
5.3.130.0170.05314.46
5.3.120.0130.05714.45
5.3.110.0200.04714.45
5.3.100.0170.06013.95
5.3.90.0700.05714.07
5.3.80.0700.06314.02
5.3.70.0630.05313.92
5.3.60.0670.04714.00
5.3.50.0200.04713.86
5.3.40.0270.03713.95
5.3.30.0100.04713.95
5.3.20.0600.05313.55
5.3.10.0130.04313.81
5.3.00.0130.04713.64
5.2.170.0070.05011.07
5.2.160.0070.04011.05
5.2.150.0100.03711.07
5.2.140.0230.03711.36
5.2.130.0670.03011.11
5.2.120.0100.03311.26
5.2.110.0070.03711.02
5.2.100.0070.03710.96
5.2.90.0070.04011.18
5.2.80.0300.04311.09
5.2.70.0100.04011.09
5.2.60.0100.04010.91
5.2.50.0130.06010.92
5.2.40.0230.03710.99
5.2.30.0200.03310.97
5.2.20.0200.03011.18
5.2.10.0100.04010.78
5.2.00.0100.03710.62
5.1.60.0030.03710.05
5.1.50.0000.03710.04
5.1.40.0100.0339.88
5.1.30.0130.04310.41
5.1.20.0070.03310.40
5.1.10.0170.03710.11
5.1.00.0070.04010.29
5.0.50.0030.0308.46
5.0.40.0130.0238.42
5.0.30.0000.0478.11
5.0.20.0270.0238.13
5.0.10.0230.0338.24
5.0.00.0170.0438.16
4.4.90.0070.0206.01
4.4.80.0000.0236.02
4.4.70.0000.0276.05
4.4.60.0100.0206.05
4.4.50.0070.0176.05
4.4.40.0000.0376.10
4.4.30.0030.0206.11
4.4.20.0030.0236.16
4.4.10.0030.0236.18
4.4.00.0070.0336.18
4.3.110.0030.0206.19
4.3.100.0000.0236.19
4.3.90.0130.0206.19
4.3.80.0170.0336.21
4.3.70.0030.0206.22
4.3.60.0000.0236.23
4.3.50.0030.0206.25
4.3.40.0100.0306.26
4.3.30.0000.0236.26
4.3.20.0070.0206.27
4.3.10.0000.0236.27
4.3.00.0000.0236.27

preferences:
146.47 ms | 1394 KiB | 7 Q