3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Derp; abstract class A { public $stuff = array(); abstract public function __construct(); } class B extends A { protected $kids; protected $log; public function __construct() { } public function bee() { $this->kids = new C($this); $this->kids->cee(); } public function updateLog($msg) { $this->log[] = $msg; } } class C { public $Cups = "cCup"; public function __construct($b) { //$this->bee(); $this->Cups = $b; } public function cee() { $this->stuff = array("MyStuff"); $this->Cups->updateLog("This"); $this->Cups->updateLog("That"); } } $b = new B(); $x = $b->bee(); var_dump($x);

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)
8.3.60.0140.00418.43
8.3.50.0130.00822.11
8.3.40.0070.01018.50
8.3.30.0100.00719.14
8.3.20.0020.00520.33
8.3.10.0040.00423.66
8.3.00.0030.00719.15
8.2.180.0090.00616.36
8.2.170.0090.00922.96
8.2.160.0130.00022.31
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00020.91
8.2.110.0060.00319.45
8.2.100.0060.00617.72
8.2.90.0060.00319.24
8.2.80.0040.00417.97
8.2.70.0030.00617.25
8.2.60.0080.00017.93
8.2.50.0030.00618.07
8.2.40.0080.00018.16
8.2.30.0050.00318.05
8.2.20.0050.00317.69
8.2.10.0000.00818.12
8.2.00.0040.00417.68
8.1.280.0110.00425.92
8.1.270.0060.00318.81
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.79
8.1.230.0000.01220.97
8.1.220.0030.00517.74
8.1.210.0080.00418.77
8.1.200.0030.00717.22
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0080.00418.38
8.1.160.0070.00022.00
8.1.150.0040.00418.88
8.1.140.0000.00717.39
8.1.130.0000.00717.88
8.1.120.0030.00417.31
8.1.110.0000.00817.29
8.1.100.0000.00717.37
8.1.90.0000.00817.34
8.1.80.0000.00817.29
8.1.70.0000.00717.41
8.1.60.0030.00517.55
8.1.50.0040.00417.55
8.1.40.0040.00417.48
8.1.30.0040.00417.64
8.1.20.0040.00417.64
8.1.10.0060.00317.50
8.1.00.0040.00417.48
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.45
8.0.270.0030.00317.19
8.0.260.0030.00317.12
8.0.250.0000.00716.90
8.0.240.0040.00416.91
8.0.230.0030.00316.96
8.0.220.0040.00416.81
8.0.210.0070.00016.88
8.0.200.0030.00316.96
8.0.190.0030.00616.74
8.0.180.0000.00716.88
8.0.170.0030.00616.88
8.0.160.0030.00316.95
8.0.150.0050.00316.64
8.0.140.0040.00416.73
8.0.130.0000.00513.26
8.0.120.0040.00416.68
8.0.110.0000.00816.85
8.0.100.0040.00416.79
8.0.90.0040.00416.66
8.0.80.0040.01116.87
8.0.70.0040.00416.71
8.0.60.0050.00216.81
8.0.50.0030.00516.86
8.0.30.0140.01217.12
8.0.20.0050.01517.40
8.0.10.0060.00317.03
8.0.00.0080.01016.64
7.4.330.0030.00315.18
7.4.320.0060.00016.45
7.4.300.0000.00616.58
7.4.290.0000.00716.50
7.4.280.0040.00416.57
7.4.270.0090.00016.65
7.4.260.0040.00416.54
7.4.250.0040.00416.38
7.4.240.0000.00716.57
7.4.230.0030.00316.42
7.4.220.0140.01116.47
7.4.210.0060.00916.47
7.4.200.0060.00316.59
7.4.160.0150.00016.48
7.4.150.0120.00617.40
7.4.140.0110.01317.86
7.4.130.0100.00716.32
7.4.120.0170.00416.47
7.4.110.0130.00616.26
7.4.100.0130.00616.44
7.4.90.0160.00016.34
7.4.80.0120.00919.39
7.4.70.0030.01416.36
7.4.60.0040.01216.39
7.4.50.0030.00316.28
7.4.40.0130.00316.61
7.4.30.0040.01416.45
7.4.00.0050.01215.00
7.3.330.0090.00013.32
7.3.320.0030.00313.23
7.3.310.0000.00716.18
7.3.300.0030.00316.35
7.3.290.0080.00616.30
7.3.280.0060.01316.27
7.3.270.0140.00317.40
7.3.260.0100.00616.70
7.3.250.0090.01116.35
7.3.240.0080.00816.31
7.3.230.0110.00716.58
7.3.210.0110.00716.37
7.3.200.0150.00919.39
7.3.190.0000.01616.24
7.3.180.0060.00916.23
7.3.170.0060.01016.31
7.3.160.0080.00916.38
7.3.120.0060.00614.76
7.3.110.0040.01514.82
7.3.100.0000.01614.88
7.3.90.0000.01714.82
7.3.80.0040.01114.71
7.3.70.0080.00814.57
7.3.60.0000.01514.68
7.3.50.0070.01314.90
7.3.40.0100.00614.90
7.3.30.0030.00914.82
7.3.20.0040.01116.40
7.3.10.0080.00716.46
7.3.00.0100.00516.49
7.2.330.0100.00716.30
7.2.320.0150.00316.70
7.2.310.0100.01316.77
7.2.300.0060.01616.61
7.2.290.0110.00716.52
7.2.250.0100.01015.24
7.2.240.0070.01315.16
7.2.230.0060.00615.07
7.2.220.0030.00915.03
7.2.210.0100.00714.96
7.2.200.0030.01214.95
7.2.190.0000.01714.70
7.2.180.0150.00414.94
7.2.170.0070.01315.11
7.2.130.0090.00616.73
7.2.120.0080.00816.54
7.2.110.0100.00316.86
7.2.100.0040.01216.88
7.2.90.0070.01017.11
7.2.80.0100.00717.13
7.2.70.0100.00716.65
7.2.60.0120.00316.76
7.2.50.0030.00916.76
7.2.40.0040.00816.89
7.2.30.0130.00616.99
7.2.20.0180.00316.74
7.2.10.0000.01616.85
7.2.00.0070.00618.21
7.1.330.0000.01315.87
7.1.320.0070.00715.42
7.1.310.0040.00715.92
7.1.300.0060.00615.84
7.1.290.0040.01115.68
7.1.280.0040.01115.81
7.1.270.0160.00015.85
7.1.260.0090.00615.54
7.1.250.0040.00715.83
7.1.100.0090.00317.87
7.1.70.0000.00717.19
7.1.60.0100.01319.46
7.1.50.0070.01716.98
7.1.00.0070.07322.46
7.0.200.0040.00416.70
7.0.140.0070.05021.93
7.0.60.0100.05719.96
7.0.50.0070.06317.88
7.0.40.0100.06720.35
7.0.30.0300.07320.34
7.0.20.0270.07720.24
7.0.10.0100.06020.10
7.0.00.0070.04020.20
5.6.280.0070.07020.91
5.6.210.0130.03320.58
5.6.200.0130.07718.19
5.6.190.0100.04720.49
5.6.180.0330.03720.27
5.6.170.0270.05320.54
5.6.160.0100.06720.51
5.6.150.0130.06318.24
5.6.140.0000.06718.23
5.6.130.0100.07018.12
5.6.120.0070.07720.91
5.6.110.0130.07721.02
5.6.100.0000.08321.00
5.6.90.0170.06321.14
5.6.80.0330.05320.54
5.5.350.3570.03720.47
5.5.340.0130.07317.94
5.5.330.0070.08320.13
5.5.320.0200.04020.32
5.5.310.0400.05320.19
5.5.300.0030.05718.09
5.5.290.0070.08017.95
5.5.280.0100.08020.70
5.5.270.0030.05020.66
5.5.260.0170.07020.68
5.5.250.0200.06020.70
5.5.240.0000.04320.20
5.4.450.0800.05719.45
5.4.440.0200.05319.66
5.4.430.0200.05019.62
5.4.420.0100.05719.54
5.4.410.0230.04719.08
5.4.400.0200.04719.31
5.4.390.0270.05018.80
5.4.380.0170.05718.70
5.4.370.0200.05018.74
5.4.360.0200.05018.79
5.4.350.0170.05718.74
5.4.340.0200.05318.75
5.4.320.0330.04718.79
5.4.310.0300.05018.74
5.4.300.0300.04718.76
5.4.290.0170.05718.70
5.4.280.0170.06018.60
5.4.270.0100.06318.61
5.4.260.0270.05718.46
5.4.250.0270.05018.73
5.4.240.0270.05018.70
5.4.230.0130.06018.70
5.4.220.0170.06018.73
5.4.210.0130.06018.57
5.4.200.0200.05016.54
5.4.190.0300.04018.52
5.4.180.0170.05318.55
5.4.170.0300.04718.55
5.4.160.0230.05018.74
5.4.150.0130.06018.81
5.4.140.0270.04716.23
5.4.130.0200.06716.30
5.4.120.0200.05016.23
5.4.110.0170.05016.32
5.4.100.0100.06316.21
5.4.90.0170.05316.21
5.4.80.0200.04716.24
5.4.70.0130.05716.39
5.4.60.0170.05716.32
5.4.50.0270.04316.40
5.4.40.0270.05316.41
5.4.30.0170.05316.17
5.4.20.0170.05716.23
5.4.10.0270.06316.23
5.4.00.0130.06015.79
5.3.290.0230.05714.81
5.3.280.0270.04714.71
5.3.270.0270.05014.62
5.3.260.0170.06014.64
5.3.250.0200.05314.71
5.3.240.0130.07014.79
5.3.230.0270.05314.75
5.3.220.0300.05014.69
5.3.210.0200.05314.71
5.3.200.0170.05314.76
5.3.190.0070.06714.62
5.3.180.0230.04714.71
5.3.170.0270.04314.71
5.3.160.0270.04314.57
5.3.150.0370.03714.70
5.3.140.0230.04714.59
5.3.130.0130.06014.59
5.3.120.0230.04714.77
5.3.110.0130.06014.69
5.3.100.0230.04714.15
5.3.90.0230.05014.17
5.3.80.0170.05714.09
5.3.70.0230.04714.15
5.3.60.0230.04714.24
5.3.50.0130.05314.10
5.3.40.0170.05714.06
5.3.30.0270.05314.03
5.3.20.0230.05013.69
5.3.10.0200.05013.65
5.3.00.0270.04713.64
5.2.170.0130.04311.11
5.2.160.0200.04311.10
5.2.150.0200.04311.14
5.2.140.0100.04711.29
5.2.130.0170.04011.16
5.2.120.0130.04011.08
5.2.110.0330.03711.05
5.2.100.0130.04311.04
5.2.90.0100.04711.26
5.2.80.0130.04711.06
5.2.70.0130.04311.02
5.2.60.0100.04710.98
5.2.50.0230.04710.94
5.2.40.0170.03711.00
5.2.30.0130.04711.03
5.2.20.0130.04010.92
5.2.10.0130.04010.91
5.2.00.0100.04310.85
5.1.60.0100.03310.05
5.1.50.0130.03310.04
5.1.40.0130.03310.01
5.1.30.0100.04010.37
5.1.20.0070.04310.40
5.1.10.0130.03710.13
5.1.00.0130.04010.04
5.0.50.0130.0238.62
5.0.40.0070.0308.47
5.0.30.0070.0438.29
5.0.20.0100.0238.21
5.0.10.0030.0378.29
5.0.00.0070.0438.18
4.4.90.0100.0205.89
4.4.80.0170.0205.87
4.4.70.0070.0205.89
4.4.60.0070.0205.94
4.4.50.0070.0205.93
4.4.40.0030.0375.91
4.4.30.0030.0235.89
4.4.20.0030.0275.92
4.4.10.0130.0175.95
4.4.00.0030.0375.91
4.3.110.0030.0235.79
4.3.100.0130.0175.82
4.3.90.0100.0175.84
4.3.80.0070.0335.82
4.3.70.0030.0235.91
4.3.60.0000.0275.82
4.3.50.0070.0205.77
4.3.40.0070.0335.75
4.3.30.0030.0234.57
4.3.20.0000.0274.53
4.3.10.0000.0274.50
4.3.00.0200.0177.18

preferences:
57.68 ms | 401 KiB | 5 Q