3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $arr; public function __construct() { $this->arr = [new \Stdclass]; } public function __get($field) { return $this->{$field}; } } $foo = new foo(); var_dump($foo->arr); var_dump(empty($foo->arr)); // Expected false? echo "\n"; $arr = [new \Stdclass]; var_dump($arr); var_dump(empty($arr));

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.5.30.0130.00419.20
8.5.20.0100.00820.09
8.5.10.0040.00619.64
8.5.00.0170.00720.04
8.4.180.0160.00625.52
8.4.170.0100.01220.36
8.4.160.0130.00823.91
8.4.150.0100.00617.65
8.4.140.0130.00817.48
8.4.130.0110.00818.63
8.4.120.0120.00824.32
8.4.110.0080.00622.62
8.4.100.0090.01118.10
8.4.90.0140.00718.86
8.4.80.0120.00817.67
8.4.70.0050.00517.76
8.4.60.0110.00920.57
8.4.50.0090.00819.29
8.4.40.0190.00019.38
8.4.30.0110.00719.43
8.4.20.0140.00717.74
8.4.10.0110.00017.63
8.3.300.0090.01020.63
8.3.290.0130.00820.68
8.3.280.0130.00818.48
8.3.270.0110.00916.38
8.3.260.0050.00316.39
8.3.250.0130.00719.03
8.3.240.0120.00818.71
8.3.230.0040.00416.49
8.3.220.0080.00617.24
8.3.210.0050.00316.70
8.3.200.0040.00516.88
8.3.190.0060.00319.23
8.3.180.0130.00716.77
8.3.170.0030.00617.22
8.3.160.0100.00718.38
8.3.150.0100.01017.28
8.3.140.0060.00318.46
8.3.130.0060.00316.80
8.3.120.0070.01320.51
8.3.110.0080.00016.59
8.3.100.0050.00318.55
8.3.90.0160.00326.77
8.3.80.0110.00017.97
8.3.70.0090.00618.43
8.3.60.0130.00318.43
8.3.50.0090.01021.14
8.3.40.0040.01118.59
8.3.30.0070.00718.79
8.3.20.0040.00419.19
8.3.10.0080.00021.85
8.3.00.0070.00022.52
8.2.300.0100.01122.27
8.2.290.0120.00620.51
8.2.280.0100.00718.43
8.2.270.0200.00017.11
8.2.260.0040.01419.15
8.2.250.0060.01318.29
8.2.240.0160.00316.29
8.2.230.0000.00820.94
8.2.220.0040.00824.06
8.2.210.0040.00426.77
8.2.200.0100.00016.88
8.2.190.0120.00316.75
8.2.180.0190.00016.38
8.2.170.0070.00722.96
8.2.160.0110.00419.02
8.2.150.0030.00724.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00819.36
8.2.110.0030.00720.40
8.2.100.0080.00418.09
8.2.90.0040.00417.63
8.2.80.0040.00418.05
8.2.70.0030.00518.03
8.2.60.0040.00418.22
8.2.50.0000.00818.10
8.2.40.0030.00521.00
8.2.30.0050.00219.36
8.2.20.0000.00717.97
8.2.10.0080.00017.95
8.2.00.0000.00718.23
8.1.340.0100.00921.64
8.1.330.0080.00821.86
8.1.320.0110.00815.91
8.1.310.0090.00916.80
8.1.300.0120.00416.05
8.1.290.0060.00330.84
8.1.280.0150.00625.92
8.1.270.0070.00023.96
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00620.31
8.1.230.0080.00818.94
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00618.66
8.1.160.0030.00518.89
8.1.150.0030.00620.14
8.1.140.0000.00719.55
8.1.130.0040.00417.36
8.1.120.0070.00017.49
8.1.110.0030.00617.44
8.1.100.0040.00417.53
8.1.90.0040.00417.53
8.1.80.0000.00717.41
8.1.70.0000.00717.36
8.1.60.0070.00017.50
8.1.50.0000.00817.43
8.1.40.0040.00417.53
8.1.30.0030.00517.67
8.1.20.0080.00017.55
8.1.10.0000.00717.50
8.1.00.0050.00217.46
8.0.300.0040.00419.64
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0090.00016.82
8.0.260.0030.00316.74
8.0.250.0070.00017.00
8.0.240.0040.00416.95
8.0.230.0000.00716.93
8.0.220.0030.00316.92
8.0.210.0040.00416.78
8.0.200.0040.00416.84
8.0.190.0040.00416.87
8.0.180.0070.00016.92
8.0.170.0000.00716.92
8.0.160.0070.00016.92
8.0.150.0030.00516.85
8.0.140.0000.00816.74
8.0.130.0000.00613.34
8.0.120.0000.00816.92
8.0.110.0040.00416.91
8.0.100.0040.00416.83
8.0.90.0090.00016.85
8.0.80.0090.01016.87
8.0.70.0000.00717.01
8.0.60.0000.00716.94
8.0.50.0040.00416.91
8.0.30.0140.00517.02
8.0.20.0110.00817.42
8.0.10.0000.00817.03
8.0.00.0080.01016.87
7.4.330.0060.00015.55
7.4.320.0030.00316.62
7.4.300.0060.00016.50
7.4.290.0040.00416.58
7.4.280.0080.00016.56
7.4.270.0030.00316.43
7.4.260.0070.00316.61
7.4.250.0040.00416.39
7.4.240.0030.00516.62
7.4.230.0050.00216.25
7.4.220.0130.00316.45
7.4.210.0110.00316.46
7.4.200.0000.00716.40
7.4.160.0080.01016.44
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0090.01516.47
7.4.120.0140.00716.54
7.4.110.0140.00416.48
7.4.100.0090.00916.42
7.4.90.0090.00916.36
7.4.80.0170.00319.39
7.4.70.0090.01216.48
7.4.60.0060.01016.39
7.4.50.0070.00716.35
7.4.40.0110.00916.44
7.4.30.0170.00416.49
7.4.00.0070.01115.09
7.3.330.0000.00513.36
7.3.320.0060.00013.09
7.3.310.0000.00716.39
7.3.300.0070.00016.31
7.3.290.0080.01216.38
7.3.280.0070.00916.36
7.3.270.0140.00317.40
7.3.260.0170.00516.57
7.3.240.0050.01216.30
7.3.230.0090.00916.32
7.3.210.0070.01016.40
7.3.200.0130.01316.32
7.3.190.0060.01316.30
7.3.180.0070.01016.45
7.3.170.0030.01316.28
7.3.160.0130.00716.48
7.3.120.0030.01314.97
7.3.110.0060.00915.11
7.3.100.0000.01014.95
7.3.90.0070.00714.93
7.3.80.0000.01314.46
7.3.70.0120.00314.63
7.3.60.0090.00914.95
7.3.50.0030.01314.96
7.3.40.0080.00814.76
7.3.30.0040.00914.86
7.3.20.0070.01016.88
7.3.10.0100.00616.70
7.3.00.0030.01016.64
7.2.330.0110.00716.31
7.2.320.0130.00916.42
7.2.310.0140.00716.64
7.2.300.0110.00516.45
7.2.290.0160.00316.38
7.2.240.0090.00614.85
7.2.230.0060.01015.01
7.2.220.0030.01014.96
7.2.210.0100.00714.88
7.2.200.0070.01114.84
7.2.190.0070.00714.83
7.2.180.0070.00715.04
7.2.170.0090.00615.14
7.2.160.0100.00314.88
7.2.150.0040.01516.87
7.2.140.0040.00817.16
7.2.130.0060.00916.92
7.2.120.0060.00917.04
7.2.110.0030.01416.93
7.2.100.0070.00417.15
7.2.90.0070.00716.85
7.2.80.0050.01216.83
7.2.70.0030.00916.91
7.2.60.0030.01016.82
7.2.50.0000.01416.98
7.2.40.0120.00016.96
7.2.30.0030.01016.98
7.2.20.0030.01016.62
7.2.10.0060.00616.84
7.2.00.0000.01616.99
7.1.330.0070.00715.68
7.1.320.0120.00315.76
7.1.310.0060.00915.98
7.1.300.0070.01015.64
7.1.290.0090.00615.79
7.1.280.0000.01515.82
7.1.270.0080.00615.94
7.1.260.0040.01115.91
7.1.250.0040.00815.93
7.1.200.0060.00615.63
7.1.70.0110.00417.21
7.1.60.0000.01017.21
7.1.50.7330.01733.00
7.1.40.0170.01332.51
7.1.30.0230.01332.35
7.1.20.6900.02032.61
7.1.10.4230.01314.65
7.1.00.2770.01014.73
7.0.200.0100.00316.67
7.0.190.6800.01014.70
7.0.180.0000.01714.31
7.0.170.0500.00714.31
7.0.160.3970.01014.37
7.0.150.3800.00714.34
7.0.140.2600.01014.22
7.0.130.1800.01714.56
7.0.120.0030.01714.73
7.0.110.3800.01014.44
7.0.100.2430.01014.40
7.0.90.2930.01314.30
7.0.80.2700.02014.41
7.0.70.2230.00714.28
7.0.60.2900.01314.32
7.0.50.2370.00714.45
7.0.40.1570.01014.44
7.0.30.2300.02014.44
7.0.20.1470.00714.46
7.0.10.1500.01014.37
7.0.00.1470.00714.45

preferences:
125.81 ms | 1655 KiB | 5 Q