3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $c = 0; public A(int c) { $this->c = c; print($this->c); } } class B extends A { public B(int c) { parent::A($this->c++ > 0 ? $c++ : -1); } } public class HelloWorld { public static void main(String []args) { $b = new B(2); } }

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.0030.06718.95
5.4.310.0100.05318.98
5.4.300.0100.03719.31
5.4.290.0170.04318.85
5.4.280.0030.05019.27
5.4.270.0100.05018.99
5.4.260.0000.05019.13
5.4.250.0030.08319.14
5.4.240.0170.06718.87
5.4.230.0070.05318.99
5.4.220.0070.07319.23
5.4.210.0030.06018.88
5.4.200.0100.06718.84
5.4.190.0030.07019.14
5.4.180.0030.05319.30
5.4.170.0070.07018.98
5.4.160.0030.04719.07
5.4.150.0030.05319.13
5.4.140.0030.04716.36
5.4.130.0000.07316.29
5.4.120.0100.05716.36
5.4.110.0000.07316.45
5.4.100.0030.05016.52
5.4.90.0000.07316.46
5.4.80.0030.07716.50
5.4.70.0000.04716.43
5.4.60.0170.03016.52
5.4.50.0030.04316.43
5.4.40.0070.06716.27
5.4.30.0030.07016.53
5.4.20.0070.07016.46
5.4.10.0100.06716.15
5.4.00.0030.06015.94
5.3.290.0170.04714.57
5.3.280.0230.07014.66
5.3.270.0070.07714.68
5.3.260.0030.05014.62
5.3.250.0030.07314.82
5.3.240.0000.07714.68
5.3.230.0000.05314.70
5.3.220.0000.06714.45
5.3.210.0030.08014.72
5.3.200.0000.07714.72
5.3.190.0030.07314.55
5.3.180.0070.05314.46
5.3.170.0030.07014.78
5.3.160.0030.04314.61
5.3.150.0030.04714.63
5.3.140.0000.05014.57
5.3.130.0070.07714.52
5.3.120.0000.07714.56
5.3.110.0070.04314.45
5.3.100.0070.07313.95
5.3.90.0030.06013.99
5.3.80.0070.06014.23
5.3.70.0000.05313.93
5.3.60.0030.07013.91
5.3.50.0070.06713.87
5.3.40.0070.06014.10
5.3.30.0070.04013.83
5.3.20.0200.03313.76
5.3.10.0030.07713.87
5.3.00.0030.04013.54
5.2.170.0030.06311.99
5.2.160.0000.06311.99
5.2.150.0030.06311.99
5.2.140.0030.05711.99
5.2.130.0030.06311.99
5.2.120.0000.05011.99
5.2.110.0030.02711.99
5.2.100.0100.05711.99
5.2.90.0030.06011.99
5.2.80.0070.05311.99
5.2.70.0030.06011.99
5.2.60.0070.06311.99
5.2.50.0030.05311.99
5.2.40.0030.03311.99
5.2.30.0030.02711.99
5.2.20.0030.02711.99
5.2.10.0030.03011.99
5.2.00.0030.02311.99
5.1.60.0000.02311.99
5.1.50.0000.02311.99
5.1.40.0000.02311.99
5.1.30.0000.02711.99
5.1.20.0030.02311.99
5.1.10.0030.02011.99
5.1.00.0000.02711.99
5.0.50.0000.02011.99
5.0.40.0030.01711.99
5.0.30.0000.03011.99
5.0.20.0070.01711.99
5.0.10.0030.01711.99
5.0.00.0030.04011.99
4.4.90.0000.03311.99
4.4.80.0000.03311.99
4.4.70.0000.01311.99
4.4.60.0030.01311.99
4.4.50.0000.01311.99
4.4.40.0000.02311.99
4.4.30.0000.01711.99
4.4.20.0000.01311.99
4.4.10.0000.01311.99
4.4.00.0000.02311.99
4.3.110.0000.01311.99
4.3.100.0030.01011.99
4.3.90.0000.01311.99
4.3.80.0000.02311.99
4.3.70.0000.01711.99
4.3.60.0000.01311.99
4.3.50.0000.01711.99
4.3.40.0030.02011.99
4.3.30.0000.01311.99
4.3.20.0000.01711.99
4.3.10.0000.02011.99
4.3.00.0000.01711.99

preferences:
141.23 ms | 1394 KiB | 7 Q