3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = 10; function myFunction($d) { return ++$d; } myFunction($d++) echo $d;

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.4.320.0200.04718.85
5.4.310.0230.03319.24
5.4.300.0230.04019.15
5.4.290.0200.03318.87
5.4.280.0170.03718.85
5.4.270.0130.04018.94
5.4.260.0230.08019.09
5.4.250.0200.05019.07
5.4.240.0270.03319.06
5.4.230.0270.03719.23
5.4.220.0230.03319.30
5.4.210.0230.04018.99
5.4.200.0270.06018.86
5.4.190.0170.04319.21
5.4.180.0230.03319.15
5.4.170.0270.03019.12
5.4.160.0300.04719.14
5.4.150.0300.04319.14
5.4.140.0270.04316.35
5.4.130.0200.04316.45
5.4.120.0270.03016.32
5.4.110.0230.04016.45
5.4.100.0200.04016.27
5.4.90.0130.04016.45
5.4.80.0270.03716.44
5.4.70.0200.04016.49
5.4.60.0170.04316.53
5.4.50.0330.04316.34
5.4.40.0170.04016.16
5.4.30.0200.03316.52
5.4.20.0200.03316.43
5.4.10.0170.03716.34
5.4.00.0200.05015.79
5.3.290.0300.05714.64
5.3.280.0230.03014.67
5.3.270.0230.05014.82
5.3.260.0200.03714.50
5.3.250.0270.05714.61
5.3.240.0270.03314.57
5.3.230.0170.04014.51
5.3.220.0170.06314.47
5.3.210.0230.04314.58
5.3.200.0200.04314.62
5.3.190.0200.04014.46
5.3.180.0230.03014.57
5.3.170.0170.03714.50
5.3.160.0200.04314.61
5.3.150.0270.04014.53
5.3.140.0200.04314.55
5.3.130.0270.03014.57
5.3.120.0100.04314.55
5.3.110.0200.05014.57
5.3.100.0200.03314.05
5.3.90.0270.04013.99
5.3.80.0200.03314.09
5.3.70.0270.02713.91
5.3.60.0170.05713.93
5.3.50.0070.04713.95
5.3.40.0230.04013.85
5.3.30.0270.04013.79
5.3.20.0230.04713.77
5.3.10.0200.03713.57
5.3.00.0270.03713.51
5.2.170.0200.02311.36
5.2.160.0230.02711.36
5.2.150.0170.06011.23
5.2.140.0170.03711.25
5.2.130.0170.03311.18
5.2.120.0130.03011.15
5.2.110.0170.05011.18
5.2.100.0100.03311.26
5.2.90.0170.03311.01
5.2.80.0230.02711.32
5.2.70.0070.03711.00
5.2.60.0100.03310.95
5.2.50.0170.02711.04
5.2.40.0170.02711.07
5.2.30.0100.04010.88
5.2.20.0170.04010.87
5.2.10.0100.03010.77
5.2.00.0170.03310.79
5.1.60.0130.0239.97
5.1.50.0200.0479.98
5.1.40.0130.0309.89
5.1.30.0100.03310.26
5.1.20.0070.02710.44
5.1.10.0100.0279.98
5.1.00.0130.02310.19
5.0.50.0030.0239.73
5.0.40.0070.0209.73
5.0.30.0130.0309.73
5.0.20.0030.0209.73
5.0.10.0030.0209.73
5.0.00.0170.0279.73
4.4.90.0070.0179.71
4.4.80.0030.0239.73
4.4.70.0070.0179.73
4.4.60.0070.0139.73
4.4.50.0030.0179.73
4.4.40.0100.0209.73
4.4.30.0070.0309.73
4.4.20.0030.0209.73
4.4.10.0030.0179.73
4.4.00.0030.0279.73
4.3.110.0100.0109.73
4.3.100.0030.0239.73
4.3.90.0030.0179.73
4.3.80.0030.0279.73
4.3.70.0030.0179.73
4.3.60.0070.0139.73
4.3.50.0030.0179.73
4.3.40.0030.0279.73
4.3.30.0000.0209.74
4.3.20.0030.0139.74
4.3.10.0030.0179.74
4.3.00.0000.0179.74

preferences:
137.94 ms | 1394 KiB | 7 Q