3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ':es:es-ES'; $b = substr($a, 0, 3); //:es $c = substr($a, 3); //:es-ES echo $a \n; echo $b \n; echo $c;

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)
7.0.20.0170.05020.06
7.0.10.0170.08020.12
7.0.00.0070.08720.24
5.6.170.0370.07320.55
5.6.160.0070.07320.44
5.6.150.0100.06018.17
5.6.140.0100.07718.18
5.6.130.0100.08018.14
5.6.120.0070.08021.14
5.6.110.0100.08320.98
5.6.100.0170.07320.98
5.6.90.0130.07721.11
5.6.80.0100.05720.37
5.5.310.0270.03720.19
5.5.300.0130.05317.98
5.5.290.0030.05717.98
5.5.280.0100.07020.76
5.5.270.0030.07320.77
5.5.260.0130.07720.66
5.5.250.0000.08720.57
5.5.240.0200.07320.26

preferences:
145.88 ms | 1394 KiB | 7 Q