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(empty($foo->arr)); // Expected false?

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.0090.00719.57
8.5.20.0050.01219.98
8.5.10.0050.00419.48
8.5.00.0110.01219.91
8.4.180.0140.01021.98
8.4.170.0180.00921.88
8.4.160.0120.00923.92
8.4.150.0100.00216.80
8.4.140.0150.00617.47
8.4.130.0040.00417.79
8.4.120.0130.00720.55
8.4.110.0150.00518.96
8.4.100.0140.00617.87
8.4.90.0070.00420.51
8.4.80.0110.00819.12
8.4.70.0080.00718.83
8.4.60.0100.01020.33
8.4.50.0110.00920.55
8.4.40.0130.00719.52
8.4.30.0150.00317.63
8.4.20.0140.00717.66
8.4.10.0070.00417.57
8.3.300.0080.00918.55
8.3.290.0130.00622.64
8.3.280.0130.00918.33
8.3.270.0120.00716.44
8.3.260.0050.00416.45
8.3.250.0140.00518.95
8.3.240.0120.00716.48
8.3.230.0110.00916.54
8.3.220.0110.00819.07
8.3.210.0080.01016.63
8.3.200.0070.00216.51
8.3.190.0090.01217.27
8.3.180.0100.00819.05
8.3.170.0090.00919.21
8.3.160.0060.00316.86
8.3.150.0090.00916.87
8.3.140.0120.00316.87
8.3.130.0040.00416.51
8.3.120.0000.00918.72
8.3.110.0090.00016.54
8.3.100.0070.00024.06
8.3.90.0080.00026.77
8.3.80.0060.00318.43
8.3.70.0130.00618.18
8.3.60.0140.00316.50
8.3.50.0110.00821.09
8.3.40.0090.00618.66
8.3.30.0110.01118.73
8.3.20.0050.00319.29
8.3.10.0040.00421.76
8.3.00.0060.00322.38
8.2.300.0140.00723.91
8.2.290.0150.00516.70
8.2.280.0120.00718.40
8.2.270.0160.00316.87
8.2.260.0090.00917.43
8.2.250.0140.00017.19
8.2.240.0090.00017.12
8.2.230.0040.00420.94
8.2.220.0090.00037.54
8.2.210.0080.00026.77
8.2.200.0030.00618.29
8.2.190.0090.00616.58
8.2.180.0070.00716.63
8.2.170.0040.01122.96
8.2.160.0100.00719.06
8.2.150.0040.00824.18
8.2.140.0070.00024.66
8.2.130.0060.00326.16
8.2.120.0030.00520.49
8.2.110.0040.00420.97
8.2.100.0080.00417.84
8.2.90.0050.00319.04
8.2.80.0090.00017.97
8.2.70.0040.00417.63
8.2.60.0000.00917.80
8.2.50.0050.00318.10
8.2.40.0080.00022.09
8.2.30.0080.00019.27
8.2.20.0000.00718.05
8.2.10.0040.00418.12
8.2.00.0040.00418.33
8.1.340.0100.00717.54
8.1.330.0160.00415.98
8.1.320.0040.00516.39
8.1.310.0030.01416.80
8.1.300.0110.00718.45
8.1.290.0060.00318.88
8.1.280.0120.00325.92
8.1.270.0000.00723.87
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00321.15
8.1.230.0080.00319.05
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0080.00017.55
8.1.180.0000.00818.10
8.1.170.0000.00818.49
8.1.160.0000.00718.88
8.1.150.0000.01020.05
8.1.140.0040.00419.59
8.1.130.0030.00318.90
8.1.120.0040.00417.33
8.1.110.0040.00417.34
8.1.100.0050.00317.37
8.1.90.0080.00017.52
8.1.80.0070.00017.46
8.1.70.0030.00317.45
8.1.60.0040.00417.63
8.1.50.0050.00317.51
8.1.40.0040.00417.53
8.1.30.0080.00017.59
8.1.20.0040.00417.63
8.1.10.0040.00417.47
8.1.00.0060.00317.44
8.0.300.0000.00720.07
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0030.00316.74
8.0.260.0070.00019.02
8.0.250.0030.00316.86
8.0.240.0000.00716.86
8.0.230.0070.00016.94
8.0.220.0070.00016.92
8.0.210.0040.00416.90
8.0.200.0030.00316.95
8.0.190.0080.00016.85
8.0.180.0040.00416.90
8.0.170.0070.00016.84
8.0.160.0070.00016.89
8.0.150.0060.00316.79
8.0.140.0030.00316.75
8.0.130.0060.00013.30
8.0.120.0000.00816.78
8.0.110.0040.00416.79
8.0.100.0040.00416.69
8.0.90.0050.00216.73
8.0.80.0080.00916.93
8.0.70.0040.00417.01
8.0.60.0040.00416.70
8.0.50.0040.00417.01
8.0.30.0130.00617.15
8.0.20.0090.01017.40
8.0.10.0040.00416.93
8.0.00.0090.01216.72
7.4.330.0030.00315.55
7.4.320.0060.00016.61
7.4.300.0060.00016.60
7.4.290.0030.00316.50
7.4.280.0080.00016.59
7.4.270.0070.00016.46
7.4.260.0070.00016.36
7.4.250.0040.00416.50
7.4.240.0000.00816.57
7.4.230.0000.00716.59
7.4.220.0030.01916.59
7.4.210.0000.01416.52
7.4.200.0000.00716.66
7.4.160.0070.01316.40
7.4.150.0190.00017.40
7.4.140.0110.00817.86
7.4.130.0130.00716.48
7.4.120.0140.00716.59
7.4.110.0090.01216.41
7.4.100.0040.01216.47
7.4.90.0060.01116.41
7.4.80.0140.00719.39
7.4.70.0130.00416.55
7.4.60.0130.00316.61
7.4.50.0070.01116.46
7.4.40.0060.01316.63
7.4.30.0110.01116.47
7.4.00.0030.01414.82
7.3.330.0020.00213.38
7.3.320.0030.00313.03
7.3.310.0050.00216.16
7.3.300.0070.00016.25
7.3.290.0030.00316.19
7.3.280.0100.00816.32
7.3.270.0170.00717.40
7.3.260.0140.00816.41
7.3.240.0090.00816.43
7.3.230.0140.01116.29
7.3.210.0040.01216.26
7.3.200.0110.01116.31
7.3.190.0060.01016.50
7.3.180.0120.00416.25
7.3.170.0060.01116.25
7.3.160.0090.00616.48
7.2.330.0030.01416.86
7.2.320.0110.01416.77
7.2.310.0100.00616.35
7.2.300.0160.00016.82
7.2.290.0090.00916.72
7.2.80.0070.00716.71
7.2.60.0000.01316.93
7.2.50.0110.00716.81
7.1.200.0060.00915.41
7.1.70.0000.01017.04
7.1.60.0090.00317.24
7.1.50.0270.00732.71
7.1.40.0370.01732.16
7.1.30.8500.02032.48
7.1.20.0200.01732.77
7.1.10.0070.00714.57
7.1.00.7700.00714.75
7.0.200.0000.01316.81
7.0.190.1170.01014.66
7.0.180.0000.01314.21
7.0.170.0070.01314.09
7.0.160.0070.01314.44
7.0.150.0070.00714.33
7.0.140.0030.01014.37
7.0.130.0100.00714.54
7.0.120.0070.01014.27
7.0.110.0030.01314.14
7.0.100.0070.00714.37
7.0.90.0070.01014.31
7.0.80.5070.01314.31
7.0.70.5070.01714.33
7.0.60.0000.01714.29
7.0.50.0000.01714.27
7.0.40.0170.00314.66
7.0.30.0070.01314.68
7.0.20.0070.01314.36
7.0.10.0100.01014.46
7.0.00.0030.01014.47

preferences:
69.12 ms | 1438 KiB | 5 Q