3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo() { echo __FUNCTION__; } foo(); 'foo'(); b'foo'(); "foo"(); $x = "oo"; "f$x"();

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.90.0090.00916.93
8.5.80.0320.00816.83
8.5.70.0090.00716.82
8.4.240.0110.01119.46
8.4.230.0060.00319.33
8.4.220.0060.00419.40
8.4.90.0020.00817.67
8.3.330.0140.00718.42
8.3.320.0050.00718.37
8.3.180.0050.00416.55
8.3.50.0060.00416.66
8.2.320.0060.00419.91

preferences:
46.57 ms | 533 KiB | 5 Q