3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar{ function __isset($a){ return isset($this->{$a}); // I shouldn't be forced to implement this, // since it looks exactly like the default isset() handler } function __get($a){ throw new Error("no prop error\n"); } } $bar = new Bar; var_dump(isset($bar->foo) ? $bar->foo : "qux"); // also works without errors

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.0160.00718.30
8.3.60.0090.01218.41
8.3.50.0130.00916.43
8.3.40.0150.00018.66
8.3.30.0150.00618.54
8.3.20.0070.01020.29
8.3.10.0060.00921.87
8.3.00.0090.00919.38
8.2.190.0110.00418.31
8.2.180.0100.01016.75
8.2.170.0100.00322.96
8.2.160.0030.01022.13
8.2.150.0040.01124.18
8.2.140.0170.00324.66
8.2.130.0070.00022.27
8.2.120.0040.00426.35
8.2.110.0060.00320.38
8.2.100.0040.00817.78
8.2.90.0030.00517.75
8.2.80.0000.00818.78
8.2.70.0000.00817.63
8.2.60.0070.00018.16
8.2.50.0000.00818.10
8.2.40.0090.00018.04
8.2.30.0040.00417.98
8.2.20.0070.00018.04
8.2.10.0000.00717.97
8.2.00.0000.00818.12
8.1.280.0070.00725.92
8.1.270.0120.00319.82
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0090.00022.00
8.1.230.0060.00622.72
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0030.00617.35
8.1.180.0030.00518.10
8.1.170.0050.00318.41
8.1.160.0000.00718.90
8.1.150.0030.00518.90
8.1.140.0070.00017.62
8.1.130.0030.00318.76
8.1.120.0030.00317.35
8.1.110.0080.00017.30
8.1.100.0030.00517.34
8.1.90.0030.00517.43
8.1.80.0000.00717.34
8.1.70.0000.00717.42
8.1.60.0030.00517.61
8.1.50.0060.00617.53
8.1.40.0000.00717.53
8.1.30.0040.00417.63
8.1.20.0040.00417.59
8.1.10.0060.00317.59
8.1.00.0080.00017.55
8.0.300.0030.00518.93
8.0.290.0040.00416.75
8.0.280.0000.00718.35
8.0.270.0050.00316.81
8.0.260.0000.00719.07
8.0.250.0030.00316.89
8.0.240.0030.00316.93
8.0.230.0040.00416.91
8.0.220.0040.00416.77
8.0.210.0040.00416.84
8.0.200.0030.00616.97
8.0.190.0040.00416.90
8.0.180.0070.00016.94
8.0.170.0000.00816.88
8.0.160.0070.00016.97
8.0.150.0060.00316.84
8.0.140.0040.00416.80
8.0.130.0030.00313.28
8.0.120.0040.00416.86
8.0.110.0030.00516.89
8.0.100.0030.00316.79
8.0.90.0000.00816.85
8.0.80.0100.00716.92
8.0.70.0040.00416.71
8.0.60.0040.00416.86
8.0.50.0020.00516.87
8.0.30.0030.01717.36
8.0.20.0140.00917.40
8.0.10.0000.00717.06
8.0.00.0090.01016.62
7.4.330.0000.00515.55
7.4.320.0000.00616.41
7.4.300.0030.00316.58
7.4.290.0000.00716.61
7.4.280.0000.00716.50
7.4.270.0080.00016.59
7.4.260.0000.00716.61
7.4.250.0040.00416.41
7.4.240.0060.00016.36
7.4.230.0000.00716.40
7.4.220.0040.00416.70
7.4.210.0090.00616.67
7.4.200.0030.00316.33
7.4.160.0060.01016.65
7.4.150.0130.00317.40
7.4.140.0110.00617.86
7.4.130.0130.00316.48
7.4.120.0110.01116.58
7.4.110.0120.00616.43
7.4.100.0100.01316.38
7.4.90.0100.01016.46
7.4.80.0090.01319.39
7.4.70.0030.01416.43
7.4.60.0000.01516.55
7.4.50.0030.00816.56
7.4.40.0120.00916.34
7.4.00.0120.00514.88
7.3.330.0070.00013.14
7.3.320.0000.00613.32
7.3.310.0060.00016.27
7.3.300.0070.00016.16
7.3.290.0060.01316.29
7.3.280.0080.00916.26
7.3.270.0070.01017.40
7.3.260.0060.01216.27
7.3.250.0100.00716.49
7.3.240.0080.01016.48
7.3.230.0060.01416.33
7.3.210.0130.00316.41
7.3.200.0060.01016.28
7.3.190.0100.01016.55
7.3.180.0060.01016.53
7.3.170.0070.01116.63
7.3.160.0090.00616.33
7.3.120.0100.00615.00
7.3.110.0030.01014.79
7.3.100.0070.00714.93
7.3.90.0030.01114.66
7.3.80.0040.01114.87
7.3.70.0040.01214.57
7.3.60.0030.01014.80
7.3.50.0070.00314.91
7.3.40.0030.01114.88
7.3.30.0030.01514.59
7.3.20.0030.00716.63
7.3.10.0100.00716.34
7.3.00.0040.01116.34
7.2.330.0120.00616.50
7.2.320.0170.00416.68
7.2.310.0150.00816.47
7.2.300.0050.01316.38
7.2.290.0130.00316.39
7.2.250.0140.00315.20
7.2.240.0090.00914.83
7.2.230.0030.00714.91
7.2.220.0060.00614.88
7.2.210.0030.00714.77
7.2.200.0130.00014.78
7.2.190.0000.01315.06
7.2.180.0040.01114.65
7.2.170.0100.00615.12
7.2.60.0050.00516.92
7.2.50.0120.00316.69
7.2.10.0260.01017.99
7.2.00.0240.01317.87
7.1.330.0070.00715.55
7.1.320.0090.00015.96
7.1.310.0060.00915.66
7.1.300.0030.00915.71
7.1.290.0130.00615.62
7.1.280.0030.01415.47
7.1.270.0000.01415.72
7.1.260.0100.00315.62
7.1.200.0080.00415.49
7.1.130.0270.01016.76
7.1.120.0300.00616.75
7.1.110.0270.00716.09
7.1.100.0220.01015.77
7.1.90.0250.00416.14
7.1.80.0940.00615.62
7.1.70.0290.01114.91
7.1.60.0370.01232.93
7.1.50.0400.01032.64
7.1.40.0360.01632.48
7.1.30.0350.01332.63
7.1.20.0330.01332.81
7.1.10.0180.01514.60
7.1.00.0240.00314.75

preferences:
48.18 ms | 401 KiB | 5 Q