3v4l.org

run code in 300+ PHP versions simultaneously
<?php public function test($arg) { echo $arg; } test('hey');

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.110.0100.09021.00
5.6.100.0030.07320.99
5.6.90.0100.04320.99
5.6.80.0070.07020.43
5.5.270.0030.04720.75
5.5.260.0070.07320.92
5.5.250.0070.05320.74
5.5.240.0000.05320.03
5.4.430.0470.06019.31
5.4.420.0500.06019.26
5.4.410.0530.05319.08
5.4.400.0600.04319.26
5.4.390.0500.05719.13
5.4.380.0530.05019.29
5.4.370.0770.05019.27
5.4.360.0430.06319.25
5.4.350.0630.04319.31
5.4.340.0600.05019.10
5.4.320.0600.05018.93
5.4.310.0730.05019.13
5.4.300.0700.05719.04
5.4.290.0670.05319.04
5.4.280.0570.05019.17
5.4.270.0600.05019.08
5.4.260.0570.05019.14
5.4.250.0630.05719.14
5.4.240.0500.05318.90
5.4.230.0530.05318.88
5.4.220.0470.06319.28
5.4.210.0570.05019.12
5.4.200.0570.05016.88
5.4.190.0630.04318.90
5.4.180.0500.05719.07
5.4.170.0630.04718.93
5.4.160.0530.05318.91
5.4.150.0500.05719.05
5.4.140.0630.06016.41
5.4.130.0730.04716.27
5.4.120.0400.04316.57
5.4.110.0070.05016.50
5.4.100.0130.04316.48
5.4.90.0130.04716.49
5.4.80.0570.04716.34
5.4.70.0630.04016.31
5.4.60.0700.03316.35
5.4.50.0500.05016.55
5.4.40.0570.04716.29
5.4.30.0670.04316.35
5.4.20.0570.04716.49
5.4.10.0570.04316.30
5.4.00.0530.05015.79
5.3.290.0700.05314.48
5.3.280.0770.04714.56
5.3.270.0770.05014.46
5.3.260.0600.05014.58
5.3.250.0430.06314.41
5.3.240.0700.06314.45
5.3.230.0630.04014.46
5.3.220.0700.03314.34
5.3.210.0530.05714.53
5.3.200.0600.04314.42
5.3.190.0670.03714.38
5.3.180.0630.04014.51
5.3.170.0570.05314.45
5.3.160.0670.05714.40
5.3.150.0500.05314.55
5.3.140.0600.04314.37
5.3.130.0500.05714.37
5.3.120.0600.04714.38
5.3.110.0700.05714.32
5.3.100.0630.05314.02
5.3.90.0500.06013.88
5.3.80.0700.05013.83
5.3.70.0600.04313.87
5.3.60.0600.04313.82
5.3.50.0430.06313.77
5.3.40.0570.05013.77
5.3.30.0530.04713.86
5.3.20.0570.04713.46
5.3.10.0500.05313.47
5.3.00.0530.04713.58
5.2.170.0400.04711.17
5.2.160.0500.03311.03
5.2.150.0430.04711.17
5.2.140.0400.04710.97
5.2.130.0430.04010.99
5.2.120.0430.04310.88
5.2.110.0470.04010.93
5.2.100.0500.03711.10
5.2.90.0470.04010.93
5.2.80.0400.04311.14
5.2.70.0470.04010.96
5.2.60.0400.04310.89
5.2.50.0470.04010.79
5.2.40.0330.04010.85
5.2.30.0400.03710.75
5.2.20.0470.04010.79
5.2.10.0500.03710.74
5.2.00.0470.03310.64
5.1.60.0370.0309.82
5.1.50.0370.03010.03
5.1.40.0330.0339.80
5.1.30.0530.02710.29
5.1.20.0300.04010.28
5.1.10.0500.0339.95
5.1.00.0400.0309.93
5.0.50.0230.0308.58
5.0.40.0200.0338.45
5.0.30.0270.0408.27
5.0.20.0200.0378.13
5.0.10.0270.0238.11
5.0.00.0270.0478.13
4.4.90.0170.0235.90
4.4.80.0270.0235.77
4.4.70.0270.0235.79
4.4.60.0200.0275.73
4.4.50.0170.0275.87
4.4.40.0230.0335.76
4.4.30.0170.0175.80
4.4.20.0030.0205.85
4.4.10.0000.0235.82
4.4.00.0030.0335.78
4.3.110.0000.0235.70
4.3.100.0130.0105.66
4.3.90.0000.0235.76
4.3.80.0270.0375.68
4.3.70.0270.0175.64
4.3.60.0230.0175.74
4.3.50.0270.0135.82
4.3.40.0130.0375.65
4.3.30.0070.0234.51
4.3.20.0100.0234.42
4.3.10.0100.0234.47
4.3.00.0000.0237.09

preferences:
146.17 ms | 1394 KiB | 7 Q