3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CoalesceTest { public function __isset(string $key): bool { return false; } public function __get(string $key): mixed { throw new \Exception(); } } $test = new CoalesceTest(); var_dump($test->bar ?? 'fallback');

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.120.0100.01020.82
8.4.110.0060.00222.61
8.4.100.0150.00517.80
8.4.90.0150.00518.62
8.4.80.0050.00317.86
8.4.70.0130.00717.69
8.4.60.0110.00918.87
8.4.50.0080.00818.85
8.4.40.0100.01317.33
8.4.30.0130.00618.68
8.4.20.0100.00620.70
8.4.10.0110.00819.40
8.3.250.0120.00718.59
8.3.240.0140.00516.43
8.3.230.0150.00516.38
8.3.220.0050.00418.89
8.3.210.0110.00718.22
8.3.200.0050.00416.32
8.3.190.0090.01016.89
8.3.180.0110.00816.53
8.3.170.0140.00319.04
8.3.160.0140.00318.47
8.3.150.0130.00616.18
8.3.140.0150.00319.10
8.3.130.0080.00018.39
8.3.120.0100.01018.85
8.3.110.0110.00020.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0080.00617.97
8.3.70.0110.01118.33
8.3.60.0130.00716.38
8.3.50.0100.00716.57
8.3.40.0130.00720.13
8.3.30.0140.00021.73
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0060.01226.16
8.2.290.0070.00822.10
8.2.280.0140.00518.18
8.2.270.0070.01117.10
8.2.260.0040.00418.30
8.2.250.0040.00416.60
8.2.240.0060.00317.27
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0090.00926.77
8.2.200.0030.00618.16
8.2.190.0120.00316.63
8.2.180.0130.00716.63
8.2.170.0130.00618.84
8.2.160.0140.00722.96
8.2.150.0000.00825.66
8.2.140.0000.00924.66
8.2.130.0140.00426.16
8.2.120.0070.00020.84
8.2.110.0070.01322.23
8.2.100.0170.00320.67
8.2.90.0230.01018.71
8.2.80.0250.00818.77
8.2.70.0200.01718.76
8.2.60.0240.00318.76
8.2.50.0100.01319.75
8.2.40.0290.00318.59
8.2.30.0250.00718.75
8.2.20.0130.00918.91
8.2.10.0210.00018.95
8.2.00.0170.00618.66
8.1.330.0140.00522.03
8.1.320.0070.00715.99
8.1.310.0040.00416.49
8.1.300.0060.00318.35
8.1.290.0080.00030.84
8.1.280.0100.01025.92
8.1.270.0050.00323.99
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0280.00718.52
8.1.230.0270.00718.37
8.1.220.0100.01418.52
8.1.210.0240.00919.88
8.1.200.0180.01118.25
8.1.190.0170.00319.39
8.1.180.0080.00818.48
8.1.170.0080.00518.43
8.1.160.0090.00318.63
8.1.150.0040.00820.50
8.1.140.0070.00718.43
8.1.130.0170.00018.39
8.1.120.0120.00018.37
8.1.110.0040.00819.68
8.1.100.0150.00018.55
8.1.90.0110.00318.45
8.1.80.0090.00418.41
8.1.70.0070.00418.80
8.1.60.0150.00018.59
8.1.50.0110.00418.63
8.1.40.0030.00918.92
8.1.30.0090.00318.98
8.1.20.0300.00318.74
8.1.10.0220.00018.87
8.1.00.0160.00418.48
8.0.300.0220.00417.68
8.0.290.0260.00017.87
8.0.280.0260.00717.66
8.0.270.0340.00317.78
8.0.260.0120.00618.39
8.0.250.0270.00717.81
8.0.240.0170.00617.80
8.0.230.0090.00318.21
8.0.220.0150.00017.68
8.0.210.0140.00017.78
8.0.200.0120.00317.84
8.0.190.0070.00518.27
8.0.180.0070.00717.87
8.0.170.0310.00017.73
8.0.160.0210.00717.89
8.0.150.0230.01317.77
8.0.140.0200.00717.77
8.0.130.0180.00917.88
8.0.120.0230.00817.79
8.0.110.0230.00018.23
8.0.100.0280.00717.75
8.0.90.0210.00717.63
8.0.80.0240.00917.88
8.0.70.0140.01117.70
8.0.60.0160.00618.12
8.0.50.0140.00617.70
8.0.30.0090.01318.16
8.0.20.0140.01117.89
8.0.10.0220.00318.03

preferences:
43.41 ms | 403 KiB | 5 Q