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;}} echo unserialie(serialize((new b)->setA(new a)));

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.0070.00716.63
8.3.50.0210.00521.96
8.3.40.0070.00718.79
8.3.30.0040.01118.81
8.3.20.0040.00420.07
8.3.10.0030.00523.27
8.3.00.0040.00419.91
8.2.180.0120.00316.63
8.2.170.0110.00422.96
8.2.160.0100.00320.22
8.2.150.0090.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00419.14
8.2.120.0050.00326.35
8.2.110.0100.00720.39
8.2.100.0030.00917.93
8.2.90.0000.00819.27
8.2.80.0030.00617.97
8.2.70.0080.00017.50
8.2.60.0000.00917.93
8.2.50.0060.00318.07
8.2.40.0000.00822.32
8.2.30.0070.00020.55
8.2.20.0030.00517.68
8.2.10.0000.00717.90
8.2.00.0070.00018.04
8.1.280.0060.00925.92
8.1.270.0070.00720.43
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0090.00022.19
8.1.230.0070.00417.77
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0000.00818.46
8.1.160.0040.00420.52
8.1.150.0040.00418.75
8.1.140.0040.00419.38
8.1.130.0070.00017.63
8.1.120.0040.00417.38
8.1.110.0000.00717.32
8.1.100.0000.00717.17
8.1.90.0080.00017.23
8.1.80.0030.00517.30
8.1.70.0070.00317.24
8.1.60.0100.00317.29
8.1.50.0040.00417.38
8.1.40.0000.00817.41
8.1.30.0000.00917.50
8.1.20.0020.00517.59
8.1.10.0040.00417.55
8.1.00.0040.00417.40
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.25
8.0.270.0000.00817.15
8.0.260.0050.00517.18
8.0.250.0030.00316.82
8.0.240.0050.00316.84
8.0.230.0040.00416.96
8.0.220.0030.00316.84
8.0.210.0040.00416.83
8.0.200.0000.00716.96
8.0.190.0080.00016.82
8.0.180.0040.00416.91
8.0.170.0080.00316.89
8.0.160.0040.00416.91
8.0.150.0040.00416.88
8.0.140.0070.00016.88
8.0.130.0000.00613.31
8.0.120.0050.00316.75
8.0.110.0040.00416.82
8.0.100.0050.00216.93
8.0.90.0000.00716.78
8.0.80.0060.00916.88
8.0.70.0000.00716.87
8.0.60.0040.00416.75
8.0.50.0040.00416.91
8.0.30.0060.01217.04
8.0.20.0110.00817.40
8.0.10.0000.00716.98
8.0.00.0090.00816.69
7.4.330.0000.00516.82
7.4.320.0000.00616.39
7.4.300.0030.00316.34
7.4.290.0030.00316.38
7.4.280.0040.00416.47
7.4.270.0030.00316.42
7.4.260.0000.00716.32
7.4.250.0070.00016.40
7.4.240.0030.00516.41
7.4.230.0000.00716.27
7.4.220.0090.01216.28
7.4.210.0070.01116.38
7.4.200.0000.00716.50
7.4.160.0110.00416.31
7.4.150.0050.01417.40
7.4.140.0110.01117.86
7.4.130.0080.01116.40
7.4.120.0090.00916.46
7.4.110.0080.00916.58
7.4.100.0100.00716.59
7.4.90.0040.01216.27
7.4.80.0030.01319.39
7.4.70.0160.00016.43
7.4.60.0160.00616.43
7.4.50.0070.00716.18
7.4.40.0030.01216.49
7.4.30.0160.00016.39
7.4.00.0060.00814.81
7.3.330.0040.00413.25
7.3.320.0050.00013.30
7.3.310.0070.00016.18
7.3.300.0000.00716.20
7.3.290.0090.00616.31
7.3.280.0080.00716.33
7.3.270.0060.01017.40
7.3.260.0080.00916.36
7.3.250.0110.00816.42
7.3.240.0060.01116.44
7.3.230.0030.01416.39
7.3.210.0100.00616.58
7.3.200.0100.01316.27
7.3.190.0070.01016.40
7.3.180.0120.00316.26
7.3.170.0120.00316.57
7.3.160.0140.00416.55
7.3.120.0160.00614.93
7.3.110.0070.01414.60
7.3.100.0070.01014.63
7.3.90.0060.00914.54
7.3.80.0170.00014.74
7.3.70.0070.01114.98
7.3.60.0090.00314.88
7.3.50.0080.00814.59
7.3.40.0030.01014.87
7.3.30.0060.00914.80
7.3.20.0060.00916.45
7.3.10.0100.00616.66
7.3.00.0100.00316.28
7.2.330.0040.01816.57
7.2.320.0120.00616.54
7.2.310.0070.01116.25
7.2.300.0160.01016.55
7.2.290.0080.01216.71
7.2.250.0070.01314.71
7.2.240.0100.01014.98
7.2.230.0030.01314.60
7.2.220.0080.00415.09
7.2.210.0100.00714.82
7.2.200.0100.00314.89
7.2.190.0070.01014.84
7.2.180.0070.00715.07
7.2.170.0090.00614.66
7.2.60.0070.00716.58
7.2.00.0030.00918.96
7.1.330.0040.01115.41
7.1.320.0070.01015.77
7.1.310.0030.00615.76
7.1.300.0090.00615.45
7.1.290.0070.00715.77
7.1.280.0050.00515.33
7.1.270.0120.00315.55
7.1.260.0080.00615.76
7.1.200.0030.01015.70
7.1.100.0000.01017.80
7.1.70.0000.01417.09
7.1.60.0090.01619.52
7.1.50.0030.01016.80
7.1.00.0070.07322.42
7.0.200.0100.01014.79
7.0.60.0000.07720.03
7.0.50.0130.07717.87
7.0.40.0000.09320.27
7.0.30.0230.04320.21
7.0.20.0300.07720.16
7.0.10.0070.08720.09
7.0.00.0000.09320.07
5.6.280.0030.03021.11
5.6.210.0100.07720.67
5.6.200.0030.08718.20
5.6.190.0030.05020.39
5.6.180.0300.07720.50
5.6.170.0470.07020.71
5.6.160.0100.03720.54
5.6.150.0070.07718.14
5.6.140.0070.04018.25
5.6.130.0070.06018.15
5.6.120.0130.03321.05
5.6.110.0030.07721.03
5.6.100.0130.04321.13
5.6.90.0070.04721.01
5.6.80.0100.07720.51
5.5.350.0170.07020.43
5.5.340.0070.04317.99
5.5.330.0070.07320.19
5.5.320.0330.05020.49
5.5.310.0300.07320.24
5.5.300.0100.04317.98
5.5.290.0100.07017.98
5.5.280.0000.08720.90
5.5.270.0130.07020.75
5.5.260.0100.07020.76
5.5.250.0100.07320.80
5.5.240.0030.05020.05

preferences:
53.38 ms | 401 KiB | 5 Q