3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Super { protected $child; function setChild(Child $child){ $this->child = $child; if($child->getSuper() !== $this) $child->setSuper($this); } } class Child { protected $super; function setSuper(Super $super){ $this->super = $super; $this->super->addChild($this); } function getSuper(){ return $this->super; } } $super = new Super; $child = new Child; $super->addChild($child); var_dump($super); $super = new Super; $child = new Child; $child->setSuper($super); var_dump($super);

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.0100.01016.50
8.3.50.0150.00321.98
8.3.40.0040.01118.92
8.3.30.0040.01218.70
8.3.20.0000.00820.39
8.3.10.0080.00023.52
8.3.00.0050.00519.38
8.2.180.0110.01118.66
8.2.170.0090.00922.96
8.2.160.0130.00720.43
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00317.63
8.2.110.0090.00020.26
8.2.100.0080.00417.93
8.2.90.0040.00419.09
8.2.80.0030.00617.97
8.2.70.0050.00317.50
8.2.60.0030.00617.91
8.2.50.0060.00318.07
8.2.40.0080.00019.38
8.2.30.0040.00420.64
8.2.20.0080.00017.70
8.2.10.0050.00318.07
8.2.00.0040.00417.99
8.1.280.0110.00325.92
8.1.270.0120.00323.91
8.1.260.0000.00726.35
8.1.250.0090.00528.09
8.1.240.0070.00322.30
8.1.230.0040.00717.52
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00017.23
8.1.180.0030.00618.10
8.1.170.0030.00518.53
8.1.160.0040.00422.01
8.1.150.0050.00218.85
8.1.140.0040.00419.46
8.1.130.0000.00717.70
8.1.120.0040.00417.49
8.1.110.0040.00417.44
8.1.100.0040.00417.28
8.1.90.0040.00417.30
8.1.80.0040.00417.40
8.1.70.0030.00517.39
8.1.60.0000.00717.56
8.1.50.0030.00617.52
8.1.40.0040.00417.52
8.1.30.0080.00017.60
8.1.20.0040.00417.50
8.1.10.0040.00417.59
8.1.00.0020.00517.56
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.41
8.0.270.0070.00017.13
8.0.260.0040.00417.09
8.0.250.0040.00417.01
8.0.240.0000.00716.96
8.0.230.0030.00316.85
8.0.220.0030.00316.88
8.0.210.0000.00916.81
8.0.200.0030.00617.00
8.0.190.0040.00417.00
8.0.180.0080.00016.79
8.0.170.0050.00216.75
8.0.160.0070.00316.95
8.0.150.0040.00416.86
8.0.140.0040.00416.91
8.0.130.0030.00313.29
8.0.120.0080.00016.83
8.0.110.0070.00016.88
8.0.100.0000.00716.90
8.0.90.0000.00716.89
8.0.80.0080.00816.92
8.0.70.0040.00416.97
8.0.60.0070.00016.74
8.0.50.0030.00516.81
8.0.30.0100.01017.08
8.0.20.0110.00917.40
8.0.10.0070.00017.00
8.0.00.0090.00816.69
7.4.330.0000.00515.08
7.4.320.0030.00316.45
7.4.300.0030.00316.63
7.4.290.0000.00816.51
7.4.280.0030.00316.69
7.4.270.0030.00316.63
7.4.260.0030.00716.61
7.4.250.0000.00716.62
7.4.240.0020.00516.45
7.4.230.0000.00716.73
7.4.220.0090.00916.56
7.4.210.0050.00916.45
7.4.200.0070.00016.63
7.4.160.0110.01116.46
7.4.150.0030.01517.40
7.4.140.0080.01217.86
7.4.130.0180.00416.57
7.4.120.0080.01116.63
7.4.110.0070.01116.64
7.4.100.0130.00616.41
7.4.90.0150.00316.57
7.4.80.0130.01019.39
7.4.70.0070.01116.48
7.4.60.0080.00816.41
7.4.50.0060.00316.58
7.4.40.0130.00316.39
7.4.30.0140.00316.46
7.4.00.0000.00814.75
7.3.330.0060.00013.33
7.3.320.0050.00013.33
7.3.310.0000.00716.34
7.3.300.0070.00016.18
7.3.290.0020.01216.31
7.3.280.0080.01016.31
7.3.270.0120.00417.40
7.3.260.0090.00916.70
7.3.240.0090.00916.44
7.3.230.0160.00016.39
7.3.210.0090.00916.37
7.3.200.0180.00016.56
7.3.190.0070.00716.37
7.3.180.0180.00416.50
7.3.170.0170.00416.46
7.3.160.0070.00716.33
7.2.330.0100.00716.49
7.2.320.0090.00916.64
7.2.310.0120.00616.62
7.2.300.0150.00416.32
7.2.290.0130.00416.55
7.2.60.0060.00916.64
7.1.200.0030.00815.61
7.1.100.0030.01217.70
7.1.70.0040.01116.80
7.1.60.0100.01319.43
7.1.50.0030.01716.77
7.1.00.0130.06322.58
7.0.200.0420.00414.69
7.0.60.0100.04320.03
7.0.50.0070.08717.86
7.0.40.0130.08320.09
7.0.30.0200.04720.18
7.0.20.0370.07720.23
7.0.10.0070.08720.09
7.0.00.0100.07020.33
5.6.210.0170.06020.77
5.6.200.0100.03718.16
5.6.190.0130.04320.41
5.6.180.0270.07320.64
5.6.170.0270.04020.57
5.6.160.0100.05720.71
5.6.150.0070.04318.25
5.6.140.0100.06018.18
5.6.130.0100.06318.14
5.6.120.0030.08321.00
5.6.110.0200.07021.11
5.6.100.0100.08021.12
5.6.90.0100.07020.98
5.6.80.0130.06020.28
5.5.350.0230.08020.41
5.5.340.0170.07017.98
5.5.330.0000.04720.43
5.5.320.0170.07320.24
5.5.310.0200.05020.36
5.5.300.0100.04018.05
5.5.290.0100.08017.95
5.5.280.0130.06720.89
5.5.270.0070.06020.80
5.5.260.0070.09020.74
5.5.250.0000.04720.58
5.5.240.0370.07020.19
5.4.450.0200.06019.47
5.4.440.0270.05319.55
5.4.430.0230.06019.33
5.4.420.0170.05719.54
5.4.410.0130.05719.57
5.4.400.0170.05019.01
5.4.390.0200.05718.98
5.4.380.0170.04719.15
5.4.370.0170.04719.28
5.4.360.0430.06019.01
5.4.350.0630.06718.97
5.4.340.0230.06318.98
5.4.320.0230.06319.14
5.4.310.0130.05719.15
5.4.300.0600.07019.30
5.4.290.0470.05719.27
5.4.280.0570.06019.12
5.4.270.0630.05718.86
5.4.260.0600.06319.14
5.4.250.0700.06019.25
5.4.240.0630.06019.14
5.4.230.0670.05319.21
5.4.220.0500.07019.28
5.4.210.0570.05319.30
5.4.200.0600.05018.84
5.4.190.0500.06719.29
5.4.180.0370.07319.14
5.4.170.0700.05019.12
5.4.160.0500.06019.25
5.4.150.0770.05319.27
5.4.140.0670.06016.61
5.4.130.0770.05716.55
5.4.120.0800.04716.53
5.4.110.1030.05016.33
5.4.100.0630.05316.62
5.4.90.0830.05016.62
5.4.80.0670.05016.22
5.4.70.0770.04716.65
5.4.60.0900.04316.18
5.4.50.0530.04316.58
5.4.40.0630.05016.57
5.4.30.0570.05716.16
5.4.20.0670.04716.39
5.4.10.0500.06716.59
5.4.00.0800.06715.88

preferences:
55.48 ms | 401 KiB | 5 Q