3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); $time = microtime(1); $i = 0; while($i++ < 100000) echo'this','is','just','a','test',',','only and only a test','...','cycled many many times'; ob_end_clean(); echo (microtime(1)-$time)*1000." milliseconds for commas"; echo "\n"; ob_start(); $time = microtime(1); $i = 0; while($i++ < 100000) echo'this'.'is'.'just'.'a'.'test'.','.'only and only a test'.'...'.'cycled many many times'; ob_end_clean(); echo (microtime(1)-$time)*1000." milliseconds for dots";

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.80.0250.04311.99
5.4.70.0200.05011.98
5.4.60.0310.06411.99
5.4.50.0190.04411.99
5.4.40.0330.06411.98
5.4.30.0250.04111.97
5.4.20.0290.06511.97
5.4.10.0160.04811.97
5.4.00.0300.06311.47
5.3.180.0200.04512.67
5.3.170.0320.06412.67
5.3.160.0200.04712.67
5.3.150.0370.06012.67
5.3.140.0190.04812.66
5.3.130.0200.04912.66
5.3.120.0220.04812.66
5.3.110.0320.07112.66
5.3.100.0190.04612.12
5.3.90.0210.04712.08
5.3.80.0360.06512.07
5.3.70.0230.04412.07
5.3.60.0240.05712.06
5.3.50.0200.04612.00
5.3.40.0300.06712.00
5.3.30.0180.04411.95
5.3.20.0280.06611.72
5.3.10.0270.06211.69
5.3.00.0370.06111.67

preferences:
141.26 ms | 1398 KiB | 7 Q