3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $c = 0; public function A($c) { print($this->c); print($c); } } class B extends A { public function B($c) { ++c; ++$this->c; $_c = $this->c > 0 ? $c : -1; parent::A($c); } } $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.2870.03719.26
5.4.310.3670.04319.22
5.4.300.3670.04719.31
5.4.290.3770.04019.31
5.4.280.3730.04019.08
5.4.270.3730.04019.31
5.4.260.3500.04019.19
5.4.250.2930.04318.97
5.4.240.3600.04018.87
5.4.230.3030.04018.97
5.4.220.3000.04319.23
5.4.210.3200.03719.07
5.4.200.3300.04019.15
5.4.190.3270.05019.25
5.4.180.2770.03719.18
5.4.170.3700.03319.24
5.4.160.3300.03319.11
5.4.150.3730.04718.95
5.4.140.3430.04016.43
5.4.130.3470.04016.39
5.4.120.3170.03016.46
5.4.110.3570.03316.31
5.4.100.3100.04316.50
5.4.90.3370.03716.31
5.4.80.4000.03016.55
5.4.70.3300.03316.31
5.4.60.3000.03716.33
5.4.50.4000.04016.25
5.4.40.3970.03316.16
5.4.30.4100.03716.32
5.4.20.3730.03316.38
5.4.10.4030.04016.43
5.4.00.4170.04015.81
5.3.290.3670.03314.71
5.3.280.3270.04014.58
5.3.270.3630.04714.72
5.3.260.3470.03714.54
5.3.250.3530.03714.53
5.3.240.3430.04014.72
5.3.230.3070.03314.58
5.3.220.3230.03714.65
5.3.210.4200.04714.68
5.3.200.2870.03714.58
5.3.190.3270.03014.48
5.3.180.3370.04314.54
5.3.170.3570.04014.47
5.3.160.3900.03714.61
5.3.150.3600.04014.48
5.3.140.3770.04014.66
5.3.130.4130.03714.52
5.3.120.4130.02714.57
5.3.110.3770.03714.53
5.3.100.4100.03314.04
5.3.90.3870.03014.04
5.3.80.3700.03713.93
5.3.70.3800.03314.10
5.3.60.3770.04014.09
5.3.50.3300.03313.88
5.3.40.3430.03713.88
5.3.30.3470.03314.13
5.3.20.4230.04013.59
5.3.10.3600.02313.59
5.3.00.3630.03013.86
5.2.170.2500.03311.07
5.2.160.2870.03011.31
5.2.150.2930.02711.24
5.2.140.3070.02711.05
5.2.130.3470.02711.03
5.2.120.3470.03011.22
5.2.110.3470.03011.01
5.2.100.2670.02711.15
5.2.90.2700.03011.02
5.2.80.3470.02711.18
5.2.70.3530.03011.20
5.2.60.2130.02311.14
5.2.50.0030.04711.20
5.2.40.0100.05710.92
5.2.30.0030.06711.04
5.2.20.0070.05011.04
5.2.10.2930.02710.79
5.2.00.2830.03010.80
5.1.60.2670.02310.08
5.1.50.2870.0239.93
5.1.40.2800.0209.98
5.1.30.2470.02310.30
5.1.20.1770.03010.32
5.1.10.1900.02310.24
5.1.00.2100.02310.00
5.0.50.0930.0209.89
5.0.40.1000.0209.89
5.0.30.1030.0309.89
5.0.20.1100.0209.89
5.0.10.1200.0209.89
5.0.00.1200.0339.89
4.4.90.1670.0179.89
4.4.80.0030.0339.89
4.4.70.1630.0179.89
4.4.60.1530.0079.89
4.4.50.1430.0179.89
4.4.40.1700.0279.89
4.4.30.1330.0239.89
4.4.20.1030.0179.89
4.4.10.0900.0139.89
4.4.00.1030.0239.89
4.3.110.1000.0179.89
4.3.100.1200.0179.89
4.3.90.1130.0139.89
4.3.80.1030.0239.89
4.3.70.0770.0179.89
4.3.60.1030.0179.89
4.3.50.1170.0209.89
4.3.40.1030.0239.89
4.3.30.0570.0179.89
4.3.20.0530.0179.89
4.3.10.0530.0139.89
4.3.00.0500.0179.89

preferences:
142.22 ms | 1394 KiB | 7 Q