3v4l.org

run code in 500+ PHP versions simultaneously
<?php $value = 0.7; echo min(1, max($value, 0)) ; print PHP_EOL; echo max(0, min($value, 1)) ;

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.80.0060.00216.73
8.5.70.0310.00816.61
8.5.60.0060.00316.61
8.4.230.0140.00819.50
8.4.220.0060.00519.32
8.4.210.0060.00419.48
8.4.90.0110.01017.74
8.3.320.0070.00218.33
8.3.310.0100.00518.24
8.3.180.0040.00416.67
8.3.50.0040.00416.65
8.2.320.0100.00918.08
8.2.310.0080.00418.03

preferences:
57.34 ms | 537 KiB | 5 Q