3v4l.org

run code in 300+ PHP versions simultaneously
<?php class parent { public function __construct($x=1, $y=2) { } } class child extends parent { public function __construct($x, $y) { parent::__construct(); } }

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.100.0300.05021.08
5.6.90.0170.07321.00
5.6.80.0030.04320.35
5.6.70.4470.04320.37
5.5.260.0130.07720.83
5.5.250.0070.06020.46
5.5.240.0470.05720.04
5.4.420.0200.04719.63
5.4.410.0100.05719.21
5.4.400.0100.05319.39
5.4.390.0100.05719.16
5.4.380.0070.05718.96
5.4.370.0030.05719.18
5.4.360.0070.05319.16
5.4.350.0030.06318.96
5.4.340.0100.05019.05
5.4.320.0200.04319.15
5.4.310.0070.06319.05
5.4.300.0170.04719.09
5.4.290.0170.04718.96
5.4.280.0100.05719.08
5.4.270.0100.05718.91
5.4.260.0100.05318.93
5.4.250.0030.06318.97
5.4.240.0170.07018.99
5.4.230.0200.04719.25
5.4.220.0100.05719.14
5.4.210.0070.05719.16
5.4.200.0130.04316.91
5.4.190.0030.05719.14
5.4.180.0200.04319.04
5.4.170.0100.05319.01
5.4.160.0030.06019.03
5.4.150.0130.05019.03
5.4.140.0030.05716.55
5.4.130.0030.05316.42
5.4.120.0100.04716.12
5.4.110.0070.06016.56
5.4.100.0130.04716.41
5.4.90.0200.04016.34
5.4.80.0070.05316.48
5.4.70.0100.05316.43
5.4.60.0270.04016.48
5.4.50.0070.05016.19
5.4.40.0200.04016.51
5.4.30.0030.05316.52
5.4.20.0100.05016.31
5.4.10.0170.04016.38
5.4.00.0130.04315.66
5.3.290.0200.04314.58
5.3.280.0100.05014.42
5.3.270.0170.04714.62
5.3.260.0130.05014.44
5.3.250.0130.05014.44
5.3.240.0100.05014.50
5.3.230.0100.05314.63
5.3.220.0130.05014.55
5.3.210.0030.06014.44
5.3.200.0300.04014.44
5.3.190.0200.04714.55
5.3.180.0130.05714.39
5.3.170.0130.06714.43
5.3.160.0070.07314.40
5.3.150.0170.04714.48
5.3.140.0100.05714.57
5.3.130.0130.05714.38
5.3.120.0100.05714.39
5.3.110.0100.05014.39
5.3.100.0200.04314.05
5.3.90.0130.04713.95
5.3.80.0070.05313.84
5.3.70.0030.05713.95
5.3.60.0070.06014.00
5.3.50.0200.04013.79
5.3.40.0070.05313.79
5.3.30.0030.05713.78
5.3.20.0070.05313.57
5.3.10.0130.05013.63
5.3.00.0130.04713.61
5.2.170.0030.05311.06
5.2.160.0130.03711.04
5.2.150.0070.05311.00
5.2.140.0130.03311.18
5.2.130.0170.03011.04
5.2.120.0100.03710.99
5.2.110.0070.04010.93
5.2.100.0030.04311.04
5.2.90.0030.05011.04
5.2.80.0130.05311.01
5.2.70.0100.05710.93
5.2.60.0100.05311.05
5.2.50.0100.04011.09
5.2.40.0030.04310.84
5.2.30.0130.04311.01
5.2.20.0030.05311.04
5.2.10.0000.05010.76
5.2.00.0170.03010.75
5.1.60.0070.03310.03
5.1.50.0070.03710.02
5.1.40.0130.02710.01
5.1.30.0130.03010.41
5.1.20.0100.04710.46
5.1.10.0200.03310.15
5.1.00.0030.0379.98
5.0.50.0030.0308.47
5.0.40.0100.0208.28
5.0.30.0000.0478.20
5.0.20.0030.0378.23
5.0.10.0030.0278.07
5.0.00.0030.0438.07
4.4.90.0000.0235.89
4.4.80.0070.0175.89
4.4.70.0070.0205.86
4.4.60.0000.0275.84
4.4.50.0070.0205.89
4.4.40.0070.0335.77
4.4.30.0030.0205.89
4.4.20.0070.0175.94
4.4.10.0030.0235.80
4.4.00.0030.0375.91
4.3.110.0070.0175.68
4.3.100.0070.0205.77
4.3.90.0000.0235.67
4.3.80.0000.0375.65
4.3.70.0030.0205.82
4.3.60.0070.0175.82
4.3.50.0030.0205.73
4.3.40.0000.0375.64
4.3.30.0000.0274.43
4.3.20.0070.0174.54
4.3.10.0030.0204.35
4.3.00.0230.01315.37

preferences:
141.3 ms | 1394 KiB | 7 Q