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->setChild($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.70.0140.00718.43
8.3.60.0070.01116.75
8.3.50.0100.00822.17
8.3.40.0110.00318.83
8.3.30.0070.00718.64
8.3.20.0080.00020.33
8.3.10.0080.00023.51
8.3.00.0100.00019.15
8.2.180.0140.00718.29
8.2.170.0070.01122.96
8.2.160.0140.00020.52
8.2.150.0080.00024.18
8.2.140.0140.00324.66
8.2.130.0060.00326.16
8.2.120.0060.00317.50
8.2.110.0090.00022.07
8.2.100.0080.00417.91
8.2.90.0050.00219.09
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0000.00719.39
8.2.30.0050.00220.60
8.2.20.0040.00417.80
8.2.10.0050.00318.12
8.2.00.0080.00018.01
8.1.280.0090.00625.92
8.1.270.0060.00623.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.43
8.1.230.0080.00417.53
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.25
8.1.190.0050.00317.13
8.1.180.0050.00318.10
8.1.170.0000.00818.46
8.1.160.0030.00321.88
8.1.150.0000.00718.88
8.1.140.0050.00319.54
8.1.130.0030.00317.64
8.1.120.0040.00417.32
8.1.110.0020.00517.36
8.1.100.0080.00017.45
8.1.90.0000.00817.31
8.1.80.0040.00417.36
8.1.70.0000.00717.28
8.1.60.0070.00017.63
8.1.50.0040.00417.56
8.1.40.0000.00817.51
8.1.30.0040.00417.68
8.1.20.0040.00417.71
8.1.10.0040.00417.60
8.1.00.0000.00817.48
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0000.00718.32
8.0.270.0070.00017.96
8.0.260.0000.00817.24
8.0.250.0000.00716.98
8.0.240.0070.00016.87
8.0.230.0000.00716.94
8.0.220.0000.00716.94
8.0.210.0000.00916.75
8.0.200.0070.00416.88
8.0.190.0040.00417.00
8.0.180.0040.00417.00
8.0.170.0040.00416.96
8.0.160.0110.00016.95
8.0.150.0050.00316.85
8.0.140.0000.00716.86
8.0.130.0030.00313.37
8.0.120.0040.00416.86
8.0.110.0000.00716.98
8.0.100.0050.00216.72
8.0.90.0070.00016.75
8.0.80.0090.00616.92
8.0.70.0000.00816.79
8.0.60.0040.00416.96
8.0.50.0040.00416.98
8.0.30.0090.01017.10
8.0.20.0100.00917.40
8.0.10.0000.00716.95
8.0.00.0100.00716.78
7.4.330.0020.00215.15
7.4.320.0000.00816.50
7.4.300.0030.00316.63
7.4.290.0030.00316.64
7.4.280.0040.00316.61
7.4.270.0030.00316.55
7.4.260.0080.00016.63
7.4.250.0040.00416.46
7.4.240.0000.00716.53
7.4.230.0030.00316.54
7.4.220.0100.01116.50
7.4.210.0030.01116.72
7.4.200.0000.00716.70
7.4.160.0070.01116.59
7.4.150.0100.00717.40
7.4.140.0090.01117.86
7.4.130.0090.00716.60
7.4.120.0070.01116.57
7.4.110.0100.01316.55
7.4.100.0050.01816.51
7.4.90.0030.01516.35
7.4.80.0090.00919.39
7.4.70.0090.00916.73
7.4.60.0060.01216.41
7.4.50.0000.00816.43
7.4.40.0080.00816.73
7.4.30.0140.00716.69
7.4.00.0120.00314.97
7.3.330.0030.00313.36
7.3.320.0060.00013.23
7.3.310.0000.00716.47
7.3.300.0000.00716.38
7.3.290.0030.01216.36
7.3.280.0100.00916.31
7.3.270.0130.00317.40
7.3.260.0070.01116.57
7.3.250.0060.01116.46
7.3.240.0100.00716.35
7.3.230.0060.01616.41
7.3.210.0100.00616.53
7.3.200.0070.01616.48
7.3.190.0020.01416.38
7.3.180.0060.01616.61
7.3.170.0090.00616.60
7.3.160.0070.01016.53
7.2.330.0100.01316.75
7.2.320.0150.00416.77
7.2.310.0090.00716.71
7.2.300.0090.00916.41
7.2.290.0030.01416.49
7.2.60.0060.00616.88
7.2.00.0030.00919.38
7.1.200.0030.00915.54
7.1.100.0090.00617.82
7.1.70.0000.01516.96
7.1.60.0160.00719.43
7.1.50.0030.01716.83
7.1.00.0030.07322.51
7.0.200.0280.00414.47
7.0.60.0100.08020.05
7.0.50.0070.07317.88
7.0.40.0170.07720.30
7.0.30.0370.07020.19
7.0.20.0430.07320.06
7.0.10.0100.04720.23
7.0.00.0030.04720.10
5.6.280.0070.07021.02
5.6.210.0030.05720.73
5.6.200.0030.08718.23
5.6.190.0000.05320.61
5.6.180.0330.07320.48
5.6.170.0200.06320.52
5.6.160.0100.05020.39
5.6.150.0030.07718.19
5.6.140.0100.08018.14
5.6.130.0070.08718.17
5.6.120.0100.07721.00
5.6.110.0130.07021.12
5.6.100.0070.08321.11
5.6.90.0100.07720.88
5.6.80.0100.06720.43
5.5.350.0370.07320.41
5.5.340.0000.05317.93
5.5.330.0030.04320.27
5.5.320.0100.05020.29
5.5.310.0300.06720.30
5.5.300.0070.04017.98
5.5.290.0130.07018.04
5.5.280.0070.07720.78
5.5.270.0070.06320.79
5.5.260.0130.05320.88
5.5.250.0070.08320.56
5.5.240.0100.05020.27
5.4.450.0100.05319.59
5.4.440.0400.05319.55
5.4.430.0100.06719.38
5.4.420.0170.05319.57
5.4.410.0200.04719.45
5.4.400.0170.05319.38
5.4.390.0370.03319.28
5.4.380.0200.04719.25
5.4.370.0130.05018.85
5.4.360.0200.05019.30
5.4.350.0270.06319.27
5.4.340.0130.05318.86
5.4.320.0300.06319.26
5.4.310.0200.05718.83
5.4.300.0170.06019.22
5.4.290.0230.05019.12
5.4.280.0130.05318.86
5.4.270.0270.04019.05
5.4.260.0170.05019.15
5.4.250.0130.05319.25
5.4.240.0230.04319.00
5.4.230.0170.05019.37
5.4.220.0070.07018.86
5.4.210.0170.05319.14
5.4.200.0100.06019.00
5.4.190.0130.06719.36
5.4.180.0070.06318.87
5.4.170.0200.05019.12
5.4.160.0230.07018.95
5.4.150.0270.05019.37
5.4.140.0130.05316.36
5.4.130.0170.04316.61
5.4.120.0200.04716.39
5.4.110.0130.05316.32
5.4.100.0200.05716.64
5.4.90.0100.05316.48
5.4.80.0130.04716.56
5.4.70.0100.05716.31
5.4.60.0070.06016.59
5.4.50.0200.04316.54
5.4.40.0100.05716.59
5.4.30.0170.04716.25
5.4.20.0170.04716.48
5.4.10.0270.04016.59
5.4.00.0130.05015.88

preferences:
51.44 ms | 401 KiB | 5 Q