3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Cl { public string $name; public function __get(string $n): void { var_dump('__get: ' . $n); } } $obj = new Cl(); // read on uninitialized typed property try { $obj->name; } catch (\Error $e) { echo $e->getMessage() . "\n"; } // read on unset typed property unset($obj->name); try { $obj->name; } catch (\Error $e) { echo $e->getMessage() . "\n"; }

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.4.140.0120.01317.93
8.4.130.0140.00717.77
8.4.120.0070.01320.41
8.4.110.0090.01117.93
8.4.100.0110.00917.80
8.4.90.0120.00820.61
8.4.80.0050.00319.07
8.4.70.0250.00818.13
8.4.60.0210.01018.49
8.4.50.0240.00818.50
8.4.40.0280.00918.92
8.4.30.0260.01018.39
8.4.20.0240.00718.16
8.4.10.0230.00820.11
8.3.270.0150.00516.40
8.3.260.0120.00816.76
8.3.250.0110.00718.67
8.3.240.0130.00616.73
8.3.230.0090.00916.37
8.3.220.0040.00419.11
8.3.210.0220.00617.35
8.3.200.0220.00617.40
8.3.190.0230.00718.51
8.3.180.0170.00418.37
8.3.170.0170.00518.58
8.3.160.0150.00618.40
8.3.150.0170.00618.25
8.3.140.0220.00317.65
8.3.130.0160.00218.43
8.3.120.0150.00719.45
8.3.110.0110.00417.42
8.3.100.0140.00218.34
8.3.90.0100.00522.47
8.3.80.0150.00418.31
8.3.70.0170.00817.38
8.3.60.0170.00517.40
8.3.50.0160.00518.14
8.3.40.0160.00320.16
8.3.30.0210.00818.45
8.3.20.0190.00621.18
8.3.10.0190.00721.42
8.3.00.0200.00622.17
8.2.290.0030.00617.00
8.2.280.0230.00718.36
8.2.270.0180.00718.50
8.2.260.0170.00817.46
8.2.250.0210.00517.44
8.2.240.0180.00217.75
8.2.230.0180.00719.56
8.2.220.0230.00521.12
8.2.210.0200.00422.47
8.2.200.0240.00417.40
8.2.190.0260.00317.40
8.2.180.0090.01022.05
8.2.170.0130.00518.63
8.2.160.0180.00620.57
8.2.150.0200.00621.92
8.2.140.0230.00521.42
8.2.130.0250.00722.17
8.2.120.0190.00519.38
8.2.110.0250.00419.29
8.2.100.0190.00818.04
8.2.90.0180.01017.78
8.2.80.0210.00518.47
8.2.70.0190.00717.84
8.2.60.0190.00718.11
8.2.50.0230.00418.13
8.2.40.0200.00518.17
8.2.30.0200.00518.11
8.2.20.0180.00618.75
8.2.10.0190.00618.06
8.2.00.0190.00318.65
8.1.330.0140.00616.08
8.1.320.0140.00718.38
8.1.310.0140.00318.13
8.1.300.0180.00718.04
8.1.290.0140.00624.51
8.1.280.0170.00522.05
8.1.270.0160.00821.42
8.1.260.0210.00722.27
8.1.250.0180.00623.13
8.1.240.0190.01018.54
8.1.230.0160.00918.00
8.1.220.0170.00617.98
8.1.210.0180.00518.47
8.1.200.0180.00517.76
8.1.190.0180.00517.76
8.1.180.0150.01018.14
8.1.170.0160.00618.46
8.1.160.0200.00718.56
8.1.150.0150.00718.42
8.1.140.0180.00717.78
8.1.130.0130.00718.20
8.1.120.0160.00217.71
8.1.110.0110.00417.64
8.1.100.0100.00517.66
8.1.90.0150.00317.54
8.1.80.0130.00617.49
8.1.70.0140.00517.53
8.1.60.0150.00717.64
8.1.50.0150.00517.59
8.1.40.0150.00417.62
8.1.30.0150.00617.66
8.1.20.0140.00517.63
8.1.10.0160.00317.63
8.1.00.0140.00617.56
8.0.300.0130.01018.47
8.0.290.0200.00317.46
8.0.280.0150.00718.27
8.0.270.0160.00818.10
8.0.260.0160.00718.00
8.0.250.0150.00517.54
8.0.240.0130.00717.35
8.0.230.0160.00417.36
8.0.220.0120.00517.13
8.0.210.0130.00617.12
8.0.200.0130.00617.16
8.0.190.0140.00417.20
8.0.180.0160.00417.16
8.0.170.0160.00417.16
8.0.160.0110.00717.16
8.0.150.0160.00317.11
8.0.140.0130.00717.12
8.0.130.0130.00717.13
8.0.120.0150.00517.14
8.0.110.0130.00517.17
8.0.100.0120.00617.15
8.0.90.0110.00717.15
8.0.80.0120.00717.13
8.0.70.0160.00517.10
8.0.60.0150.00417.09
8.0.50.0150.00417.04
8.0.30.0120.00717.07
8.0.20.0130.00517.17
8.0.10.0100.00717.22
7.4.330.0150.00317.03
7.4.320.0150.00417.16
7.4.300.0130.00616.86
7.4.290.0130.00616.82
7.4.280.0170.00216.84
7.4.270.0140.00516.83
7.4.260.0110.00516.81
7.4.250.0140.00616.88
7.4.240.0150.00316.88
7.4.230.0130.00616.80
7.4.220.0130.00416.84
7.4.210.0120.00516.82
7.4.200.0130.00316.83
7.4.190.0140.00316.90
7.4.180.0120.00516.85
7.4.160.0130.00416.85
7.4.150.0140.00316.74
7.4.140.0110.00516.80
7.4.130.0110.00716.73
7.4.120.0100.00516.82
7.4.110.0080.00616.75
7.4.100.0120.00416.76
7.4.90.0100.00416.71
7.4.80.0090.00416.69
7.4.70.0130.00416.76
7.4.60.0100.00716.73
7.4.50.0120.00416.72
7.4.40.0090.00516.71
7.4.30.0100.00416.74
7.4.20.0100.00516.67
7.4.10.0110.00616.79
7.4.00.0100.00616.79

preferences:
74.62 ms | 403 KiB | 5 Q