3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fooList = [ new Foo, new Foo ]; $bar = new Bar($fooList); var_dump(empty($bar->fooList)); // true $fooList = $bar->fooList; var_dump(empty($fooList)); // false class Foo { } class Bar { protected $fooList = []; public function __construct(array $fooList) { $this->fooList = $fooList; } public function __get($property) { return $this->$property; } public function __isset($property) { return $property == "fooList"; } }

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.0130.00918.31
8.3.60.0140.00016.63
8.3.50.0100.01122.11
8.3.40.0120.00318.84
8.3.30.0070.00718.67
8.3.20.0050.00321.64
8.3.10.0000.00820.65
8.3.00.0040.00423.61
8.2.190.0060.01616.59
8.2.180.0100.01016.50
8.2.170.0070.00722.96
8.2.160.0100.00319.50
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0060.01221.00
8.2.110.0060.00321.03
8.2.100.0090.00317.91
8.2.90.0080.00019.20
8.2.80.0050.00319.77
8.2.70.0000.00818.04
8.2.60.0040.00417.50
8.2.50.0040.00418.10
8.2.40.0020.00520.61
8.2.30.0040.00419.21
8.2.20.0030.00617.94
8.2.10.0040.00418.06
8.2.00.0000.00717.66
8.1.280.0040.01125.92
8.1.270.0030.00523.96
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.00922.42
8.1.230.0130.00022.50
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0000.00817.48
8.1.190.0060.00317.23
8.1.180.0030.00518.10
8.1.170.0000.00818.66
8.1.160.0030.00322.06
8.1.150.0000.00818.89
8.1.140.0070.00019.56
8.1.130.0000.00717.63
8.1.120.0040.00417.46
8.1.110.0000.00817.53
8.1.100.0000.00817.50
8.1.90.0050.00317.38
8.1.80.0030.00517.45
8.1.70.0050.00217.43
8.1.60.0040.00417.58
8.1.50.0040.00417.53
8.1.40.0030.00617.55
8.1.30.0030.00517.64
8.1.20.0040.00417.60
8.1.10.0000.00817.59
8.1.00.0000.00817.39
8.0.300.0050.00319.84
8.0.290.0040.00416.75
8.0.280.0000.00718.32
8.0.270.0000.00717.18
8.0.260.0000.00617.32
8.0.250.0000.00716.98
8.0.240.0020.00517.02
8.0.230.0000.00716.93
8.0.220.0000.00716.89
8.0.210.0070.00016.96
8.0.200.0040.00416.83
8.0.190.0080.00016.96
8.0.180.0000.00816.88
8.0.170.0000.00716.98
8.0.160.0040.00416.96
8.0.150.0000.00816.93
8.0.140.0000.00816.74
8.0.130.0000.00513.25
8.0.120.0040.00416.82
8.0.110.0000.00716.73
8.0.100.0040.00416.74
8.0.90.0040.00416.73
8.0.80.0060.00916.89
8.0.70.0090.00016.76
8.0.60.0040.00416.70
8.0.50.0000.00716.78
8.0.30.0090.01017.15
8.0.20.0110.00917.40
8.0.10.0040.00417.08
8.0.00.0110.00816.88
7.4.330.0050.00015.21
7.4.320.0000.00716.60
7.4.300.0000.00616.61
7.4.290.0050.00316.61
7.4.280.0050.00316.60
7.4.270.0070.00016.53
7.4.260.0000.00716.55
7.4.250.0030.00316.49
7.4.240.0030.00316.59
7.4.230.0070.00016.72
7.4.220.0070.01016.32
7.4.210.0110.00316.50
7.4.200.0040.00416.63
7.4.160.0100.00716.51
7.4.150.0100.00717.40
7.4.140.0050.01317.86
7.4.130.0070.01216.65
7.4.120.0080.00916.54
7.4.110.0100.00716.43
7.4.100.0140.00316.52
7.4.90.0120.00616.45
7.4.80.0040.01419.39
7.4.70.0130.00716.67
7.4.60.0070.01016.37
7.4.50.0060.00916.66
7.4.40.0060.01216.61
7.4.30.0100.01216.66
7.4.00.0040.01114.71
7.3.330.0000.00513.22
7.3.320.0000.00613.34
7.3.310.0070.00016.41
7.3.300.0000.00716.41
7.3.290.0000.00716.21
7.3.280.0110.00716.35
7.3.270.0170.00017.40
7.3.260.0100.01016.41
7.3.250.0100.00716.44
7.3.240.0090.00816.37
7.3.230.0070.01016.39
7.3.210.0110.01116.42
7.3.200.0040.01216.43
7.3.190.0170.00316.40
7.3.180.0100.00616.50
7.3.170.0140.00716.59
7.3.160.0080.00816.39
7.3.10.0120.00816.80
7.3.00.0080.01215.95
7.2.330.0150.00316.52
7.2.320.0000.02016.73
7.2.310.0030.01316.69
7.2.300.0090.01516.75
7.2.290.0070.01016.45
7.2.130.0160.00316.42
7.2.120.0070.00716.77
7.2.110.0030.01216.56
7.2.100.0060.00916.18
7.2.90.0130.00516.38
7.2.80.0130.00716.73
7.2.70.0140.00716.40
7.2.60.0110.00516.79
7.2.50.0160.00716.19
7.2.40.0200.00716.55
7.2.30.0120.01216.43
7.2.20.0100.00516.04
7.2.10.0200.00016.50
7.2.00.0150.00916.68
7.1.250.0070.00715.50
7.1.200.0090.00315.95
7.1.70.0000.01416.97
7.1.60.0040.00717.02
7.1.00.0000.08022.30
7.0.200.0150.00614.62
7.0.110.0070.07320.21
7.0.100.0430.08020.27
7.0.90.0370.05320.29
7.0.80.0270.06020.23
7.0.70.0270.06020.16
7.0.60.0430.05320.23
7.0.50.0370.05720.18
7.0.40.0330.07020.12
7.0.30.0470.05020.34
7.0.20.0370.06020.23
7.0.10.0500.07320.25
7.0.00.0370.08020.30
5.6.260.0170.05321.07
5.6.250.0030.07321.05
5.6.240.0200.07320.80
5.6.230.0170.06320.97
5.6.220.0230.06321.09
5.6.210.0100.06020.84
5.6.200.0130.05720.78
5.6.190.0130.06020.98
5.6.180.0100.06720.88
5.6.170.0100.06020.83
5.6.160.0130.05721.07
5.6.150.0170.05721.05
5.6.140.0170.05021.01
5.6.130.0170.04721.03
5.6.120.0130.05320.85
5.6.110.0130.05321.06
5.6.100.0100.05720.80
5.6.90.0070.05721.03
5.6.80.0000.06020.25
5.6.70.0170.04320.22
5.6.60.0130.07020.36
5.6.50.0100.05720.23
5.6.40.0070.07020.35
5.6.30.0030.06020.19
5.6.20.0170.05020.21
5.6.10.0230.04020.35
5.6.00.0100.05020.14

preferences:
19.52 ms | 401 KiB | 5 Q