3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doSomething($string) { $string[0] = strtolower($string[0]); $func = create_function('$c', 'return "_" . strtolower($c[1]);'); return preg_replace_callback('/([A-Z])/', $func, $string); } doSomething('davoid')

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.6.140.0170.03718.18
5.6.130.0070.08018.16
5.6.120.0170.07721.04
5.6.110.0070.06321.14
5.6.100.0070.05021.14
5.6.90.0100.06321.11
5.6.80.0100.04020.54
5.5.300.0070.07017.95
5.5.290.0030.05317.92
5.5.280.0070.08020.94
5.5.270.0030.06720.60
5.5.260.0070.09320.86
5.5.250.0030.08020.69
5.5.240.0030.05020.26
5.4.450.0800.06319.41
5.4.440.0700.05719.57
5.4.430.0700.05719.32
5.4.420.0800.05319.49
5.4.410.0700.05019.24
5.4.400.0670.04719.09
5.4.390.0670.05319.05
5.4.380.0630.05719.16
5.4.370.0670.05718.95
5.4.360.0630.05719.00
5.4.350.0800.04318.92
5.4.340.0670.05318.81
5.4.320.0630.05719.25
5.4.310.0630.05719.16
5.4.300.0570.06318.79
5.4.290.0830.04019.23
5.4.280.0700.05019.05
5.4.270.0630.05319.24
5.4.260.0630.05019.36
5.4.250.0800.05019.06
5.4.240.0630.05318.95
5.4.230.0730.04319.28
5.4.220.0670.05718.77
5.4.210.0670.05719.23
5.4.200.0670.05318.99
5.4.190.0630.06318.99
5.4.180.0770.04719.07
5.4.170.0600.06018.80
5.4.160.0700.06318.76
5.4.150.0600.06019.07
5.4.140.0670.05016.34
5.4.130.0670.04316.45
5.4.120.0900.04716.39
5.4.110.0630.05016.62
5.4.100.0730.05316.28
5.4.90.0670.04716.52
5.4.80.0700.04316.46
5.4.70.0200.03316.52
5.4.60.0000.06316.54
5.4.50.0100.05016.49
5.4.40.0230.07716.55
5.4.30.0270.07016.22
5.4.20.0070.03716.53

preferences:
143.18 ms | 939 KiB | 8 Q