3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo substr("'".0123."'", 0, 5);

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)
5.4.50.4000.03716.23
5.4.40.4370.03016.52
5.4.30.4230.03316.46
5.4.20.4430.03716.19
5.4.10.4470.04016.45
5.4.00.4530.03315.95
5.3.150.3530.03314.49
5.3.140.4470.03714.45
5.3.130.4100.03714.49
5.3.120.4500.04014.56
5.3.110.4170.03714.47
5.3.100.4570.03714.13
5.3.90.4170.03313.95
5.3.80.1000.03313.95
5.3.70.0100.04313.93
5.3.60.0070.04014.01
5.3.50.0000.07713.90
5.3.40.3930.03313.88
5.3.30.3870.03313.93
5.3.20.3800.03713.62
5.3.10.3770.03713.47
5.3.00.3830.03713.44

preferences:
152.62 ms | 1398 KiB | 7 Q