3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($a, $a){ echo ($a + $a); } test(test(0,2), test(2,5));

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.280.0030.07320.99
5.6.210.0100.03320.61
5.6.200.0070.08718.18
5.6.190.0130.04720.63
5.6.180.0370.03320.64
5.6.170.0230.08020.53
5.6.160.0070.05720.61
5.6.150.0070.08018.29
5.6.140.0030.04718.17
5.6.130.0030.04018.17
5.6.120.0070.04020.90
5.6.110.0070.04021.12
5.6.100.0130.08020.96
5.6.90.0030.05020.98
5.6.80.0170.05320.38
5.5.350.0330.07320.49
5.5.340.0030.09318.07
5.5.330.0170.07320.43
5.5.320.0370.03720.41
5.5.310.0230.05020.36
5.5.300.0000.04318.02
5.5.290.0070.05317.91
5.5.280.0030.06720.88
5.5.270.0070.04020.75
5.5.260.0200.07020.73
5.5.250.0100.06020.59
5.5.240.0200.06320.04
5.4.450.0030.08719.32
5.4.440.1570.04719.31
5.4.430.2570.04019.27
5.4.420.2430.04719.54
5.4.410.2200.04019.51
5.4.400.2170.04318.88
5.4.390.2200.04019.16
5.4.380.2230.03719.06
5.4.370.2500.03718.87
5.4.360.2230.03719.22
5.4.350.2270.03319.09
5.4.340.2500.03719.20
5.4.320.2700.04019.06
5.4.310.2500.04019.00
5.4.300.2370.04019.22
5.4.290.2270.03719.19
5.4.280.2230.04018.88
5.4.270.2270.03318.87
5.4.260.2200.04319.14
5.4.250.2400.03718.86
5.4.240.2400.03719.08
5.4.230.2130.03718.95
5.4.220.2470.04719.08
5.4.210.2300.03318.95
5.4.200.2530.03718.97
5.4.190.2400.04719.21
5.4.180.2130.03719.21
5.4.170.2170.04019.23
5.4.160.2430.04319.05
5.4.150.1670.05319.14
5.4.140.2370.04016.34
5.4.130.2170.03316.30
5.4.120.2500.03016.36
5.4.110.2200.03316.40
5.4.100.2370.03716.54
5.4.90.2500.03316.19
5.4.80.2370.04016.52
5.4.70.2430.03716.18
5.4.60.2400.03016.43
5.4.50.2300.04016.33
5.4.40.2400.04016.48
5.4.30.2300.04016.37
5.4.20.2400.04016.25
5.4.10.2470.03316.52
5.4.00.2200.03015.96
5.3.290.2470.04314.66
5.3.280.2400.04714.83
5.3.270.2400.04314.82
5.3.260.2130.04314.65
5.3.250.2130.04014.51
5.3.240.2300.04014.58
5.3.230.2330.04014.61
5.3.220.2070.03314.54
5.3.210.2230.04314.55
5.3.200.2370.04014.55
5.3.190.2500.04014.64
5.3.180.2170.04014.46
5.3.170.2370.04314.46
5.3.160.2570.04014.62
5.3.150.2300.03714.54
5.3.140.2270.03714.63
5.3.130.2670.04314.52
5.3.120.2370.04014.63
5.3.110.2300.04014.47
5.3.100.2430.04314.27
5.3.90.2630.04314.13
5.3.80.2430.03313.94
5.3.70.2270.03314.08
5.3.60.2300.03314.00
5.3.50.2470.04013.92
5.3.40.2300.03314.16
5.3.30.2500.03713.91
5.3.20.2430.03313.80
5.3.10.2370.03713.57
5.3.00.2430.03313.54
5.2.170.1900.03311.06
5.2.160.2030.03311.26
5.2.150.2100.03311.15
5.2.140.1870.03311.10
5.2.130.2070.02311.01
5.2.120.2130.03311.01
5.2.110.2070.02311.01
5.2.100.1870.02710.98
5.2.90.2130.03011.00
5.2.80.2070.02711.31
5.2.70.2370.03011.34
5.2.60.2030.03311.12
5.2.50.2070.02711.10
5.2.40.1530.02310.96
5.2.30.1900.03010.97
5.2.20.1730.02710.86
5.2.10.1700.03710.95
5.2.00.1730.02710.85
5.1.60.1600.0309.88
5.1.50.1730.02310.21
5.1.40.1600.02710.04
5.1.30.1500.02310.45
5.1.20.2000.01710.31
5.1.10.1830.0279.96
5.1.00.1430.0209.94
5.0.50.0900.0208.47
5.0.40.0870.0238.46
5.0.30.0730.0338.20
5.0.20.0900.0208.28
5.0.10.1000.0338.32
5.0.00.0530.0438.14
4.4.90.0730.0177.89
4.4.80.0570.0137.89
4.4.70.0030.0137.89
4.4.60.0000.0177.89
4.4.50.0000.0177.89
4.4.40.0030.0277.89
4.4.30.0000.0177.89
4.4.20.0000.0177.89
4.4.10.0030.0137.89
4.4.00.0100.0277.89
4.3.110.0400.0177.89
4.3.100.0670.0177.89
4.3.90.0700.0137.89
4.3.80.0700.0207.89
4.3.70.0530.0137.89
4.3.60.0800.0177.89
4.3.50.0470.0177.89
4.3.40.0570.0277.89
4.3.30.0370.0207.89
4.3.20.0470.0177.89
4.3.10.0330.0137.89
4.3.00.0270.0177.89

preferences:
145.5 ms | 1394 KiB | 7 Q