3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static function test(){ echo 'test'; } } $foo = 'bar'; Test::test($foo);

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.80.0170.07020.51
5.5.240.0070.07320.19
5.4.400.0400.05718.82
5.4.390.0870.06818.62
5.4.380.0850.06518.67
5.4.370.0620.05318.69
5.4.360.0480.06318.73
5.4.350.0400.07018.66
5.4.340.0530.06718.67
5.4.320.0320.07218.63
5.4.310.0400.07318.50
5.4.300.0420.07018.60
5.4.290.0450.06218.75
5.4.280.0370.07318.72
5.4.270.0400.06718.77
5.4.260.0400.06318.65
5.4.250.0450.06318.68
5.4.240.0320.07318.68
5.4.230.0420.06018.77
5.4.220.0270.06718.75
5.4.210.0280.06818.64
5.4.200.0530.05016.60
5.4.190.0420.05718.54
5.4.180.0480.06818.60
5.4.170.0350.07218.66
5.4.160.0530.05718.65
5.4.150.0980.06518.60
5.4.140.0420.06316.32
5.4.130.0820.06316.23
5.4.120.0420.05816.25
5.4.110.0400.06316.29
5.4.100.1230.06016.40
5.4.90.0370.06316.30
5.4.80.0420.06016.25
5.4.70.0330.06016.27
5.4.60.0450.05316.24
5.4.50.0420.05216.35
5.4.40.0380.05316.28
5.4.30.0400.05216.25
5.4.20.0480.05816.20
5.4.10.0620.05816.32
5.4.00.0350.06015.81
5.3.290.0450.06514.77
5.3.280.0320.06314.66
5.3.270.0350.06714.74
5.3.260.0400.06314.60
5.3.250.0330.07014.71
5.3.240.0320.05814.65
5.3.230.0300.06214.63
5.3.220.0430.06314.63
5.3.210.0380.07314.73
5.3.200.0270.07314.65
5.3.190.0320.05814.59
5.3.180.0770.06514.57
5.3.170.0520.06814.58
5.3.160.0330.06514.71
5.3.150.0330.06514.75
5.3.140.0530.05714.67
5.3.130.0420.06214.64
5.3.120.0350.06514.66
5.3.110.0380.06714.64
5.3.100.0330.07514.15
5.3.90.0450.06714.06
5.3.80.0320.06214.03
5.3.70.0400.06014.08
5.3.60.0380.05314.13
5.3.50.0420.06214.02
5.3.40.0400.05514.04
5.3.30.0330.06713.92
5.3.20.0470.05513.85
5.3.10.0350.06713.65
5.3.00.0470.08013.78
5.2.170.0220.05311.25
5.2.160.0380.04311.30
5.2.150.0200.04811.20
5.2.140.0320.04811.17
5.2.130.0350.05511.18
5.2.120.0470.04711.11
5.2.110.0250.05011.17
5.2.100.0850.06011.18
5.2.90.0270.04711.11
5.2.80.0330.04811.12
5.2.70.0370.05211.13
5.2.60.0380.05311.26
5.2.50.0370.05511.12
5.2.40.0230.05311.09
5.2.30.0280.04211.13
5.2.20.0180.04811.02
5.2.10.0230.04211.00
5.2.00.0220.05210.85
5.1.60.0270.03810.03
5.1.50.0230.04310.04
5.1.40.0150.04310.10
5.1.30.0200.04710.47
5.1.20.0280.04510.42
5.1.10.0230.05010.26
5.1.00.0280.05210.23
5.0.50.0150.0378.70
5.0.40.0180.0358.42
5.0.30.0220.0488.33
5.0.20.0100.0388.28
5.0.10.0130.0328.21
5.0.00.0170.0458.22
4.4.90.0150.0255.95
4.4.80.0150.0255.94
4.4.70.0200.0235.88
4.4.60.0170.0255.98
4.4.50.0370.0235.94
4.4.40.0100.0425.90
4.4.30.0150.0255.90
4.4.20.0150.0256.03
4.4.10.0120.0326.03
4.4.00.0130.0355.95
4.3.110.0070.0305.88
4.3.100.0150.0225.83
4.3.90.0220.0255.83
4.3.80.0130.0405.83
4.3.70.0200.0205.79
4.3.60.0170.0235.88
4.3.50.0080.0335.86
4.3.40.0130.0405.77
4.3.30.0050.0274.85
4.3.20.0130.0234.85
4.3.10.0050.0274.85
4.3.00.0170.0277.32

preferences:
38.68 ms | 400 KiB | 5 Q