3v4l.org

run code in 500+ PHP versions simultaneously
<?php class ValidationError implements \Throwable { public function getTrace(): array { return []; } // <--- zero-cost like oxygen :D }

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.00919.48
8.5.20.0090.00917.91
8.5.10.0100.00916.79
8.5.00.0200.01016.66
8.4.180.0140.00919.80
8.4.170.0110.01220.65
8.4.160.0290.01519.52
8.4.150.0350.00819.43
8.4.140.0300.01517.48
8.4.130.0360.00917.34
8.4.120.0330.01717.71
8.4.110.0400.01317.44
8.4.100.0410.01017.48
8.4.90.0360.01217.51
8.4.80.0400.00817.48
8.4.70.0370.01417.59
8.4.60.0400.00817.61
8.4.50.0430.01117.56
8.4.40.0400.01217.57
8.4.30.0400.01017.79
8.4.20.0400.00717.54
8.4.10.0360.01417.68
8.3.300.0120.01020.85
8.3.290.0270.01118.32
8.3.280.0400.00518.30
8.3.270.0430.00616.77
8.3.260.0370.01316.60
8.3.250.0400.01116.75
8.3.240.0330.01016.48
8.3.230.0420.01016.58
8.3.220.0410.00816.52
8.3.210.0400.00916.61
8.3.200.0400.00716.63
8.3.190.0450.00816.74
8.3.180.0350.01116.59
8.3.170.0370.01116.70
8.3.160.0410.00916.68
8.3.150.0370.01018.21
8.3.140.0350.01016.85
8.3.130.0400.00416.79
8.3.120.0330.00916.53
8.3.110.0340.00718.27
8.3.100.0350.01016.65
8.3.90.0420.00716.68
8.3.80.0400.01116.51
8.3.70.0390.00816.47
8.3.60.0340.00416.62
8.3.50.0400.00916.56
8.3.40.0380.00717.78
8.3.30.0290.00817.74
8.3.20.0300.00717.73
8.3.10.0260.00917.89
8.3.00.0180.00617.71
8.2.300.0420.01517.89
8.2.290.0310.00616.54
8.2.280.0270.01116.68
8.2.270.0320.00916.60
8.1.340.0320.00917.33

preferences:
42.92 ms | 733 KiB | 5 Q