3v4l.org

run code in 300+ PHP versions simultaneously
<?php class strings { function fix_string($a) { echo implode("",$a); } function fix_string($b) { echo implode("",$a); } } $s = new strings(); $ret = $s->fix_string(array('Derick','der','dere')); ?>

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.210.0070.07719.20
5.4.200.0130.05319.14
5.4.190.0070.07319.25
5.4.180.0070.08018.83
5.4.170.0200.06318.84
5.4.160.0130.07019.13
5.4.150.0070.07719.13
5.4.140.0000.08716.39
5.4.130.0030.03716.39
5.4.120.0100.07016.43
5.4.110.0070.07016.45
5.4.100.0030.04016.45
5.4.90.0130.05716.30
5.4.80.0070.05316.38
5.4.70.0070.07016.31
5.4.60.0200.06016.36
5.4.50.0100.05716.37
5.4.40.0070.07316.39
5.4.30.0030.04016.46
5.4.20.0030.06016.27
5.4.10.0030.07716.25
5.4.00.0000.07015.79
5.3.270.0000.08314.68
5.3.260.0070.04314.68
5.3.250.0070.04014.66
5.3.240.0070.05014.60
5.3.230.0030.04014.67
5.3.220.0030.04714.61
5.3.210.0000.08014.46
5.3.200.0070.07314.56
5.3.190.0100.06714.59
5.3.180.0200.06314.57
5.3.170.0130.05014.64
5.3.160.0100.07314.50
5.3.150.0030.07314.61
5.3.140.0000.08014.70
5.3.130.0130.05014.71
5.3.120.0130.07014.44
5.3.110.0170.07014.70
5.3.100.0070.04714.20
5.3.90.0130.07014.08
5.3.80.0100.04314.08
5.3.70.0000.04013.91
5.3.60.0100.07014.01
5.3.50.0070.06014.01
5.3.40.0100.07314.09
5.3.30.0000.04713.95
5.3.20.0070.06713.69
5.3.10.0100.07013.60
5.3.00.0070.07013.68

preferences:
141.12 ms | 1394 KiB | 7 Q