3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mediaapi_filter_underscoretocamelcase($string) { $string = explode('_', $string); array_walk($string, function ($item, $key) { if ($key > 0) { $item = ucfirst($item); } }); return implode('', $string); } echo mediaapi_filter_underscoretocamelcase('franz_deleon');

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.3.40.0060.01318.76
8.3.30.0040.01120.25
8.3.20.0050.00320.34
8.3.10.0030.00622.09
8.3.00.0040.00422.39
8.2.170.0090.00922.96
8.2.160.0040.01122.08
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00526.16
8.2.120.0020.00521.13
8.2.110.0040.00422.16
8.2.100.0110.00019.45
8.2.90.0000.00719.27
8.2.80.0080.00019.38
8.2.70.0030.00617.59
8.2.60.0080.00017.93
8.2.50.0080.00018.07
8.2.40.0030.00618.16
8.2.30.0070.00318.12
8.2.20.0070.00017.54
8.2.10.0000.00717.54
8.2.00.0000.00717.70
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.97
8.1.230.0030.00918.98
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0040.00717.35
8.1.190.0000.00817.54
8.1.180.0040.00419.13
8.1.170.0050.00318.45
8.1.160.0000.00722.13
8.1.150.0040.00418.63
8.1.140.0000.00717.45
8.1.130.0030.00317.70
8.1.120.0030.00317.50
8.1.110.0000.00917.35
8.1.100.0030.00417.35
8.1.90.0040.00417.46
8.1.80.0030.00317.44
8.1.70.0040.00417.39
8.1.60.0040.00417.46
8.1.50.0030.00617.57
8.1.40.0000.00717.51
8.1.30.0040.00417.63
8.1.20.0060.00317.55
8.1.10.0020.00517.41
8.1.00.0100.00017.52
8.0.300.0040.00418.77
8.0.290.0040.00417.04
8.0.280.0000.00718.39
8.0.270.0070.00017.23
8.0.260.0040.00416.83
8.0.250.0000.00817.01
8.0.240.0000.00816.89
8.0.230.0000.00716.87
8.0.220.0070.00016.85
8.0.210.0040.00416.73
8.0.200.0030.00316.96
8.0.190.0000.00716.96
8.0.180.0070.00016.94
8.0.170.0000.00816.94
8.0.160.0030.00316.86
8.0.150.0030.00316.83
8.0.140.0070.00016.86
8.0.130.0070.00013.36
8.0.120.0040.00416.89
8.0.110.0000.00716.92
8.0.100.0040.00416.80
8.0.90.0070.00016.92
8.0.80.0080.00816.86
8.0.70.0000.00816.70
8.0.60.0040.00416.70
8.0.50.0000.00716.78
8.0.30.0120.00717.25
8.0.20.0090.00917.40
8.0.10.0000.00716.97
8.0.00.0080.01416.69
7.4.330.0050.00015.00
7.4.320.0060.00016.61
7.4.300.0000.00616.61
7.4.290.0000.00716.62
7.4.280.0060.00316.60
7.4.270.0030.00316.50
7.4.260.0040.00416.64
7.4.250.0040.00416.47
7.4.240.0040.00416.48
7.4.230.0000.00616.63
7.4.220.0060.01216.48
7.4.210.0050.00916.55
7.4.200.0030.00316.40
7.4.190.0000.00716.69
7.4.160.0130.00316.58
7.4.150.0070.01017.40
7.4.140.0100.00817.86
7.4.130.0090.00916.48
7.4.120.0090.00916.45
7.4.110.0100.00616.59
7.4.100.0070.01016.53
7.4.90.0110.01116.59
7.4.80.0030.01419.39
7.4.70.0080.01616.65
7.4.60.0100.00616.52
7.4.50.0040.00416.52
7.4.40.0070.01122.77
7.4.30.0080.00816.48
7.4.00.0040.01415.09
7.3.330.0060.00013.18
7.3.320.0020.00513.12
7.3.310.0050.00216.17
7.3.300.0030.00316.33
7.3.290.0100.01016.45
7.3.280.0100.00816.31
7.3.270.0130.00317.40
7.3.260.0140.00916.46
7.3.250.0100.01016.54
7.3.240.0100.00716.25
7.3.230.0100.00716.47
7.3.210.0100.00616.48
7.3.200.0070.01419.39
7.3.190.0100.00516.34
7.3.180.0030.01316.58
7.3.170.0090.00616.52
7.3.160.0070.01016.59
7.3.120.0040.01114.76
7.3.10.0030.01016.75
7.3.00.0040.00716.41
7.2.330.0090.01216.65
7.2.320.0070.01516.58
7.2.310.0180.00316.79
7.2.300.0090.00816.71
7.2.290.0090.00616.82
7.2.130.0040.01217.06
7.2.120.0100.00316.87
7.2.110.0080.00817.08
7.2.100.0000.01616.57
7.2.90.0080.00816.91
7.2.80.0030.00916.96
7.2.70.0090.00317.08
7.2.60.0030.01017.04
7.2.50.0070.01016.66
7.2.40.0130.00017.05
7.2.30.0130.00316.75
7.2.20.0090.00016.72
7.2.10.0030.00716.69
7.2.00.0020.01118.08
7.1.250.0070.00315.61
7.1.200.0070.00715.53
7.1.100.0060.00618.20
7.1.70.0000.00817.07
7.1.60.0090.01519.43
7.1.50.0090.01316.92
7.1.00.0030.06022.28
7.0.200.0130.01014.74
7.0.140.0070.07021.95
7.0.60.0030.06020.04
7.0.50.0200.07317.86
7.0.40.0100.08020.32
7.0.30.0230.04020.26
7.0.20.0330.07720.09
7.0.10.0330.04720.15
7.0.00.0130.08020.20
5.6.280.0000.07721.13
5.6.210.0100.06720.70
5.6.200.0030.04718.23
5.6.190.0130.07320.48
5.6.180.0400.05020.61
5.6.170.0200.07720.51
5.6.160.0070.06020.56
5.6.150.0070.05718.19
5.6.140.0100.07718.19
5.6.130.0030.05718.23
5.6.120.0030.05321.02
5.6.110.0030.07720.98
5.6.100.0070.07721.09
5.6.90.0030.04320.98
5.6.80.0100.07320.52
5.6.70.4200.03720.37
5.5.350.0130.04720.41
5.5.340.0000.06017.93
5.5.330.0030.06020.28
5.5.320.0370.06720.30
5.5.310.0200.07720.24
5.5.300.0100.03318.01
5.5.290.0030.08017.98
5.5.280.0100.07020.66
5.5.270.0130.03320.73
5.5.260.0200.06720.96
5.5.250.0030.04020.71
5.5.240.0130.07020.05
5.4.450.0570.06319.53
5.4.440.0200.06319.43
5.4.430.0300.06319.58
5.4.420.0400.06319.47
5.4.410.0200.05319.46
5.4.400.1130.05318.67
5.4.390.1400.06718.79
5.4.380.0270.06018.56
5.4.370.0200.05318.59
5.4.360.0130.05018.70
5.4.350.0110.07712.02
5.4.340.0040.04012.02
5.4.320.0090.03512.50
5.4.310.0060.04212.50
5.4.300.0030.03912.51
5.4.290.0060.03712.51
5.4.280.0060.03512.40
5.4.270.0050.04012.40
5.4.260.0050.04812.40
5.4.250.0070.03912.40
5.4.240.0170.07018.77
5.4.230.0170.04719.07
5.4.220.0100.07319.03
5.4.210.0170.06319.00
5.4.200.0230.06718.77
5.4.190.0230.05718.66
5.4.180.0100.08318.94
5.4.170.0170.05319.08
5.4.160.0000.06318.79
5.4.150.0170.06318.99
5.4.140.0000.06716.44
5.4.130.0330.06016.47
5.4.120.0100.04716.47
5.4.110.0200.08016.61
5.4.100.0030.06016.62
5.4.90.0100.04716.48
5.4.80.0070.06716.55
5.4.70.0230.05716.70
5.4.60.0030.07016.45
5.4.50.0070.05716.31
5.4.40.0170.05016.44
5.4.30.0100.06016.45
5.4.20.0000.06716.38
5.4.10.0170.06716.38
5.4.00.0300.05015.99
5.3.290.0080.03812.80
5.3.280.0270.05314.50
5.3.270.0200.06014.70
5.3.260.0070.06014.78
5.3.250.0070.07714.69
5.3.240.0200.05714.62
5.3.230.0130.06714.82
5.3.220.0070.05314.64
5.3.210.0170.05314.55
5.3.200.0200.06014.53
5.3.190.0100.05014.47
5.3.180.0030.07014.74
5.3.170.0170.04314.70
5.3.160.0000.06014.55
5.3.150.0130.04714.64
5.3.140.0170.05014.77
5.3.130.0100.06714.63
5.3.120.0170.05314.45
5.3.110.0070.05314.62
5.3.100.0000.06314.12
5.3.90.0100.05314.20
5.3.80.0100.05014.00
5.3.70.0170.04714.10
5.3.60.0100.05314.00
5.3.50.0130.06314.04
5.3.40.0070.05714.18
5.3.30.0130.04714.02
5.3.20.0070.05013.60
5.3.10.0130.05713.66
5.3.00.0070.07013.82
5.2.170.0130.04711.24
5.2.160.0070.05011.20
5.2.150.0100.04011.31
5.2.140.0170.04311.14
5.2.130.0100.05711.07
5.2.120.0070.05711.09
5.2.110.0070.05311.00
5.2.100.0000.05011.27
5.2.90.0000.06311.17
5.2.80.0070.04311.27
5.2.70.0070.04011.25
5.2.60.0100.05011.13
5.2.50.0100.03710.98
5.2.40.0030.05310.97
5.2.30.0100.04710.79
5.2.20.0100.04311.09
5.2.10.0130.04011.04
5.2.00.0070.05010.81
5.1.60.0070.04310.19
5.1.50.0130.03010.09
5.1.40.0070.03310.13
5.1.30.0070.05710.42
5.1.20.0030.03710.34
5.1.10.0100.03710.04
5.1.00.0030.04310.12
5.0.50.0100.0338.55
5.0.40.0100.0238.56
5.0.30.0030.0478.18
5.0.20.0070.0338.19
5.0.10.0070.0238.21
5.0.00.0070.0378.00
4.4.90.0070.0276.91
4.4.80.0070.0176.91
4.4.70.0170.0176.91
4.4.60.0070.0236.91
4.4.50.0130.0206.91
4.4.40.0030.0376.91
4.4.30.0000.0276.91
4.4.20.0070.0276.91
4.4.10.0070.0276.91
4.4.00.0070.0336.91
4.3.110.0030.0276.91
4.3.100.0100.0236.91
4.3.90.0070.0176.91
4.3.80.0030.0436.91
4.3.70.0070.0176.91
4.3.60.0030.0276.91
4.3.50.0070.0276.91
4.3.40.0130.0206.91
4.3.30.0000.0236.91
4.3.20.0000.0306.91
4.3.10.0000.0306.91
4.3.00.0100.0276.71

preferences:
39.16 ms | 400 KiB | 5 Q