3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { function __isset($a){ return isset($this->{$a}); } function __get($a){ throw new Error("no prop error\n"); } } $bar = new Bar(); var_dump(isset($bar->foo) ? $bar->foo : "qux"); // Also works, without erros

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.0090.01218.55
8.3.50.0130.00616.27
8.3.40.0100.01018.61
8.3.30.0120.00918.55
8.3.20.0130.00320.16
8.3.10.0150.00321.77
8.3.00.0090.00019.38
8.2.180.0110.01116.38
8.2.170.0100.00722.96
8.2.160.0070.01122.05
8.2.150.0150.00624.18
8.2.140.0100.00624.66
8.2.130.0050.00322.31
8.2.120.0060.00926.35
8.2.110.0040.00422.13
8.2.100.0040.00817.78
8.2.90.0000.00822.36
8.2.80.0040.00417.97
8.2.70.0030.00618.04
8.2.60.0080.00018.22
8.2.50.0030.00518.10
8.2.40.0080.00020.51
8.2.30.0050.00319.21
8.2.20.0070.00018.05
8.2.10.0040.00418.14
8.2.00.0000.00718.24
8.1.280.0100.01325.92
8.1.270.0040.00419.99
8.1.260.0080.00626.35
8.1.250.0130.00328.09
8.1.240.0120.00622.59
8.1.230.0070.00420.87
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00917.36
8.1.190.0080.00017.35
8.1.180.0030.00618.10
8.1.170.0040.00418.43
8.1.160.0030.00518.88
8.1.150.0040.00418.79
8.1.140.0040.00417.70
8.1.130.0070.00018.76
8.1.120.0030.00317.39
8.1.110.0000.00717.45
8.1.100.0000.00817.35
8.1.90.0040.00417.34
8.1.80.0040.00417.49
8.1.70.0030.00317.46
8.1.60.0030.00517.59
8.1.50.0080.00417.52
8.1.40.0060.00317.43
8.1.30.0040.00417.56
8.1.20.0030.00517.59
8.1.10.0030.00517.57
8.1.00.0040.00417.46
8.0.300.0070.00019.98
8.0.290.0000.00816.75
8.0.280.0030.00318.38
8.0.270.0000.00717.19
8.0.260.0000.00619.11
8.0.250.0080.00016.99
8.0.240.0000.00716.90
8.0.230.0000.00716.94
8.0.220.0030.00316.86
8.0.210.0030.00316.88
8.0.200.0060.00316.98
8.0.190.0000.00817.01
8.0.180.0040.00416.94
8.0.170.0040.00416.81
8.0.160.0000.00816.90
8.0.150.0070.00316.80
8.0.140.0030.00316.73
8.0.130.0060.00013.33
8.0.120.0080.00016.85
8.0.110.0070.00016.95
8.0.100.0070.00016.78
8.0.90.0030.00316.84
8.0.80.0120.00616.89
8.0.70.0040.00416.93
8.0.60.0080.00016.93
8.0.50.0040.00416.95
8.0.30.0070.00317.07
8.0.20.0100.00817.40
8.0.10.0040.00417.05
8.0.00.0080.01016.88
7.4.330.0030.00315.55
7.4.320.0030.00316.43
7.4.300.0030.00316.64
7.4.290.0080.00016.63
7.4.280.0000.00716.50
7.4.270.0000.00716.50
7.4.260.0050.00316.39
7.4.250.0070.00016.41
7.4.240.0040.00416.49
7.4.230.0070.00016.50
7.4.220.0000.00816.39
7.4.210.0030.01216.63
7.4.200.0000.00716.24
7.4.160.0080.01316.52
7.4.150.0140.00617.40
7.4.140.0120.00717.86
7.4.130.0070.01016.38
7.4.120.0120.01016.42
7.4.110.0080.00816.52
7.4.100.0080.00916.75
7.4.90.0140.00316.43
7.4.80.0110.01119.39
7.4.70.0070.01116.56
7.4.60.0060.00916.38
7.4.50.0030.01316.30
7.4.40.0030.01716.55
7.4.00.0070.00714.51
7.3.330.0060.00013.30
7.3.320.0060.00013.15
7.3.310.0030.00316.17
7.3.300.0000.00716.13
7.3.290.0120.00616.26
7.3.280.0080.00816.28
7.3.270.0120.00617.40
7.3.260.0110.01016.35
7.3.250.0090.00916.37
7.3.240.0120.01016.40
7.3.230.0180.00516.44
7.3.210.0070.01016.34
7.3.200.0090.00616.38
7.3.190.0060.00916.32
7.3.180.0090.00616.32
7.3.170.0160.00616.30
7.3.160.0160.00016.48
7.2.330.0090.00916.56
7.2.320.0120.01216.45
7.2.310.0120.00616.42
7.2.300.0030.01516.59
7.2.290.0090.00916.63
7.2.60.0040.01216.89
7.2.10.0160.01017.97
7.2.00.0150.00618.00
7.1.200.0030.01015.80
7.1.130.0180.00616.86
7.1.120.0200.00316.75
7.1.110.0100.01016.11
7.1.100.0100.01015.85
7.1.90.0150.00616.17
7.1.80.0220.00616.39
7.1.70.0170.00614.91
7.1.60.0280.00933.17
7.1.50.0270.00732.94
7.1.40.0330.00732.66
7.1.30.0390.00832.45
7.1.20.0220.01332.66
7.1.10.0160.00814.87
7.1.00.0100.01314.84

preferences:
58.83 ms | 400 KiB | 5 Q