3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public static string $prop; } try { var_dump(C::$prop); } catch (Error $e) { echo $e->getMessage(), "\n"; } try { var_dump(C::$nonExistent); } catch (Error $e) { echo $e->getMessage(), "\n"; } var_dump(C::$prop ?? 'default'); var_dump(C::$nonExistent ?? 'default');

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.00817.78
8.5.20.0080.00920.08
8.5.10.0050.00516.71
8.5.00.0160.00619.88
8.4.170.0120.01023.88
8.4.160.0140.00823.84
8.4.150.0010.00114.05
8.4.140.0110.01017.75
8.4.130.0100.00217.98
8.4.120.0130.00823.97
8.4.110.0040.00523.52
8.4.100.0050.00518.95
8.4.90.0120.00818.60
8.4.80.0100.01019.05
8.4.70.0070.00120.47
8.4.60.0150.00618.76
8.4.50.0130.00724.30
8.4.40.0140.00717.71
8.4.30.0320.00917.45
8.4.20.0350.00517.73
8.4.10.0260.00217.70
8.3.300.0140.00718.42
8.3.290.0130.01018.55
8.3.280.0140.00718.41
8.3.270.0110.00816.23
8.3.260.0090.00416.21
8.3.250.0100.00918.88
8.3.240.0120.00718.98
8.3.230.0130.00817.07
8.3.220.0060.00218.74
8.3.210.0110.00816.64
8.3.200.0050.00416.69
8.3.190.0080.01117.32
8.3.180.0090.01018.81
8.3.170.0060.01316.96
8.3.160.0220.00616.46
8.3.150.0250.00416.67
8.3.140.0210.00516.56
8.3.130.0170.00416.50
8.3.120.0160.00616.31
8.3.110.0210.00616.79
8.3.100.0210.00316.45
8.3.90.0210.00516.21
8.3.80.0170.00616.39
8.3.70.0140.00816.22
8.3.60.0240.00016.46
8.3.50.0180.00816.62
8.3.40.0120.00917.43
8.3.30.0130.00717.48
8.3.20.0210.00217.42
8.3.10.0170.00617.40
8.3.00.0110.00517.25
8.2.300.0120.00818.15
8.2.290.0100.00920.33
8.2.280.0100.00918.52
8.2.270.0150.00616.57
8.2.260.0150.00516.43
8.2.250.0100.00916.59
8.2.240.0130.00416.54
8.2.230.0140.00516.42
8.2.220.0170.00316.52
8.2.210.0140.00816.36
8.2.200.0200.00216.44
8.2.190.0190.00916.42
8.2.180.0200.00316.61
8.2.170.0220.00617.65
8.2.160.0190.00817.68
8.2.150.0150.00617.65
8.2.140.0240.00717.57
8.2.130.0150.00717.49
8.2.120.0200.00517.42
8.2.110.0160.00817.46
8.2.100.0220.00117.46
8.2.90.0220.00617.58
8.2.80.0170.00217.44
8.2.70.0200.00217.34
8.2.60.0130.00717.40
8.2.50.0160.00417.47
8.2.40.0140.00717.51
8.2.30.0140.00417.33
8.2.20.0150.00517.39
8.2.10.0140.00517.31
8.2.00.0180.00117.31
8.1.340.0130.01117.82
8.1.320.0110.00518.12

preferences:
36.91 ms | 403 KiB | 5 Q