3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'ZpglnRxqenU'; // Expected: 'Z-Pp-Ggg-Llll-Nnnnn-Rrrrrr-Xxxxxxx-Qqqqqqqq-Eeeeeeeee-Nnnnnnnnnn-Uuuuuuuuuuu' var_export( mb_convert_case( preg_replace_callback( '/(?!^)./', function ($m) { static $i = 1; return '-' . str_repeat($m[0], ++$i); }, $input ), MB_CASE_TITLE ) );

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)
8.5.00.0140.01520.39
8.4.150.0020.00114.05
8.4.140.0130.00817.59
8.4.130.0110.00918.02
8.4.120.0120.00820.59
8.4.110.0130.00718.87
8.4.100.0090.00918.71
8.4.90.0110.00720.82
8.4.80.0060.00218.75
8.4.70.0090.00417.73
8.4.60.0130.00918.43
8.4.50.0110.00618.01
8.4.40.0130.00618.78
8.4.30.0130.00619.00
8.4.20.0130.00719.79
8.4.10.0060.00319.48
8.3.280.0010.00014.05
8.3.270.0130.00916.62
8.3.260.0120.00816.71
8.3.250.0100.00918.91
8.3.240.0120.00716.70
8.3.230.0110.00816.56
8.3.220.0110.00718.93
8.3.210.0090.00416.69
8.3.200.0120.00516.70
8.3.190.0110.00517.29
8.3.180.0100.00918.79
8.3.170.0160.00322.71
8.3.160.0110.00817.11
8.3.150.0140.00717.25
8.3.140.0070.00720.80
8.3.130.0060.00318.50
8.3.120.0040.00420.61
8.3.110.0060.00320.94
8.3.100.0090.00924.06
8.3.90.0080.00026.77
8.3.80.0070.00717.97
8.3.70.0110.00718.43
8.3.60.0340.01025.92
8.3.50.0090.01225.92
8.3.40.0200.01325.92
8.3.30.0400.00025.92
8.3.20.0470.00025.92
8.3.10.0340.00925.92
8.3.00.0380.01025.92
8.2.290.0120.00619.01
8.2.280.0060.00918.88
8.2.270.0000.00819.14
8.2.260.0120.00016.77
8.2.250.0040.00416.79
8.2.240.0050.00317.13
8.2.230.0000.01122.58
8.2.220.0030.01037.54
8.2.210.0040.00426.77
8.2.200.0000.00918.54
8.2.190.0160.00616.75
8.2.180.0410.01325.92
8.2.170.0390.01025.92
8.2.160.0380.00725.92
8.2.150.0410.00625.92
8.2.140.0250.01725.92
8.2.130.0250.00825.92
8.2.120.0290.00625.92
8.2.110.0280.00625.92
8.2.100.0280.00625.92
8.2.90.0290.00725.92
8.2.80.0290.01125.92
8.2.70.0260.00725.92
8.2.60.0300.00325.92
8.2.50.0380.00025.92
8.2.40.0270.01125.92
8.2.30.0260.00625.92
8.2.20.0080.00825.92
8.2.10.0200.01025.92
8.2.00.0190.02625.92
8.1.330.0090.01016.60
8.1.320.0120.00716.52
8.1.310.0100.00016.48
8.1.300.0000.00818.51
8.1.290.0040.00830.84
8.1.280.0400.00325.92
8.1.270.0440.00025.92
8.1.260.0300.01425.92
8.1.250.0440.00325.92
8.1.240.0250.00625.92
8.1.230.0210.00925.92
8.1.220.0220.00925.92
8.1.210.0380.00925.92
8.1.200.0290.01325.92
8.1.190.0340.00825.92
8.1.180.0250.01825.92
8.1.170.0230.01125.92
8.1.160.0280.00325.92
8.1.150.0170.01325.92
8.1.140.0220.00725.92
8.1.130.0240.01025.92
8.1.120.0240.00825.92
8.1.110.0310.01225.92
8.1.100.0370.00325.92
8.1.90.0310.00325.92
8.1.80.0290.01625.92
8.1.70.0350.01325.92
8.1.60.0250.01525.92
8.1.50.0350.00925.92
8.1.40.0330.01325.92
8.1.30.0390.00425.92
8.1.20.0260.02025.92
8.1.10.0290.01325.92
8.1.00.0300.00325.92

preferences:
34.3 ms | 403 KiB | 5 Q