3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { protected $a = 10; protected $c;} class b { protected $b; public function setA($a){$this->b = $a;return $this;}} var_dump(unserialize(serialize((new b)->setA(new a)), true));

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.0000.01516.75
8.3.50.0100.00921.95
8.3.40.0180.00018.79
8.3.30.0070.00718.66
8.3.20.0000.00820.29
8.3.10.0030.00523.61
8.3.00.0050.00319.85
8.2.180.0090.00616.50
8.2.170.0070.00722.96
8.2.160.0140.00020.38
8.2.150.0040.00424.18
8.2.140.0060.00924.66
8.2.130.0060.00319.27
8.2.120.0080.00026.35
8.2.110.0060.00320.38
8.2.100.0000.01017.91
8.2.90.0030.00619.09
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00417.89
8.2.50.0060.00318.07
8.2.40.0030.00522.34
8.2.30.0040.00420.50
8.2.20.0040.00417.57
8.2.10.0020.00518.06
8.2.00.0000.00818.01
8.1.280.0110.00425.92
8.1.270.0070.01120.30
8.1.260.0050.00328.09
8.1.250.0000.00728.09
8.1.240.0070.00323.73
8.1.230.0030.00921.00
8.1.220.0000.00817.74
8.1.210.0060.00618.77
8.1.200.0030.00617.22
8.1.190.0080.00017.13
8.1.180.0040.00418.10
8.1.170.0060.00318.45
8.1.160.0030.00320.69
8.1.150.0070.00018.83
8.1.140.0030.00619.50
8.1.130.0040.00417.59
8.1.120.0000.00717.32
8.1.110.0070.00017.33
8.1.100.0030.00617.46
8.1.90.0040.00417.25
8.1.80.0020.00517.23
8.1.70.0040.00417.28
8.1.60.0000.00817.63
8.1.50.0000.00917.54
8.1.40.0040.00417.57
8.1.30.0000.00717.61
8.1.20.0050.00317.63
8.1.10.0000.00817.47
8.1.00.0050.00317.52
8.0.300.0040.00418.77
8.0.290.0000.00916.75
8.0.280.0000.00718.39
8.0.270.0040.00417.14
8.0.260.0040.00417.25
8.0.250.0030.00316.90
8.0.240.0080.00016.96
8.0.230.0030.00516.85
8.0.220.0000.00716.78
8.0.210.0050.00316.90
8.0.200.0070.00016.94
8.0.190.0030.00316.95
8.0.180.0040.00416.80
8.0.170.0000.01116.95
8.0.160.0030.00616.89
8.0.150.0040.00416.92
8.0.140.0000.00816.75
8.0.130.0030.00313.32
8.0.120.0040.00416.86
8.0.110.0000.00716.95
8.0.100.0040.00416.84
8.0.90.0000.00816.88
8.0.80.0060.01016.91
8.0.70.0040.00416.89
8.0.60.0040.00416.77
8.0.50.0040.00416.85
8.0.30.0130.00617.22
8.0.20.0100.01117.40
8.0.10.0000.00817.01
8.0.00.0140.00716.70
7.4.330.0050.00016.69
7.4.320.0000.00616.49
7.4.300.0000.00616.57
7.4.290.0000.00716.41
7.4.280.0040.00416.38
7.4.270.0030.00316.38
7.4.260.0000.00716.52
7.4.250.0030.00316.43
7.4.240.0010.00616.40
7.4.230.0030.00316.28
7.4.220.0060.01016.47
7.4.210.0070.01116.40
7.4.200.0030.00316.56
7.4.160.0090.00616.43
7.4.150.0030.01317.40
7.4.140.0130.01017.86
7.4.130.0140.00516.60
7.4.120.0110.00616.50
7.4.110.0130.00416.48
7.4.100.0140.00816.67
7.4.90.0090.01016.59
7.4.80.0070.01019.39
7.4.70.0070.01016.46
7.4.60.0140.00316.51
7.4.50.0000.01516.29
7.4.40.0060.00916.48
7.4.30.0070.01016.33
7.4.00.0070.00714.73
7.3.330.0030.00313.16
7.3.320.0030.00313.30
7.3.310.0050.00216.26
7.3.300.0070.00016.35
7.3.290.0090.00516.32
7.3.280.0090.00716.35
7.3.270.0060.01117.40
7.3.260.0160.00616.58
7.3.250.0120.00616.31
7.3.240.0100.00816.32
7.3.230.0030.01416.39
7.3.210.0140.00316.19
7.3.200.0140.00616.23
7.3.190.0080.01216.21
7.3.180.0130.00316.42
7.3.170.0060.01116.32
7.3.160.0090.00916.53
7.2.330.0100.01516.61
7.2.320.0070.01116.43
7.2.310.0130.00916.60
7.2.300.0130.01016.59
7.2.290.0110.00616.71
7.2.60.0060.01016.75
7.2.00.0030.01419.55
7.1.200.0080.00815.38
7.1.100.0090.00018.05
7.1.70.0030.00617.03
7.1.60.0120.01219.52
7.1.50.0070.01417.04
7.1.00.0100.07022.43
7.0.200.0060.00614.76
7.0.60.0100.07719.93
7.0.50.0000.04317.83
7.0.40.0070.04320.10
7.0.30.0270.08020.08
7.0.20.0300.07720.07
7.0.10.0030.04320.10
7.0.00.0070.07020.29
5.6.280.0100.05721.02
5.6.210.0030.05020.69
5.6.200.0070.08018.24
5.6.190.0030.06020.61
5.6.180.0200.05720.61
5.6.170.0330.07320.57
5.6.160.0000.04720.56
5.6.150.0000.08718.17
5.6.140.0070.08018.19
5.6.130.0130.07018.20
5.6.120.0170.04721.04
5.6.110.0130.08321.03
5.6.100.0070.08720.98
5.6.90.0000.04720.98
5.6.80.0070.03320.37
5.5.350.0130.08020.44
5.5.340.0200.07317.98
5.5.330.0200.06720.27
5.5.320.0530.07320.52
5.5.310.0230.08320.19
5.5.300.0070.08017.98
5.5.290.0100.07717.98
5.5.280.0070.04320.80
5.5.270.0070.08320.86
5.5.260.0270.06320.86
5.5.250.0100.08320.62
5.5.240.0270.07720.16

preferences:
53.61 ms | 401 KiB | 5 Q