3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'valami_underscored_cucc'; $keys = array( 'valami_underscored_cucc', 'valami_underscored_cucc', 'valami_underscored_cucc', 'valami_underscored_cucc', 'valami_underscored_cucc', 'valami_underscored_cucc', 'valami_underscored_cucc', 'valami_underscored_cucc', 'valami_underscored_cucc', 'valami_underscored_cucc', ); foreach ($keys as $key) { echo preg_replace_callback( '/_(\w)/', function(array $matches) { return ucfirst($matches[1]); }, $key); }

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.0110.00318.83
8.3.30.0090.00919.08
8.3.20.0040.00420.25
8.3.10.0080.00020.48
8.3.00.0080.00019.56
8.2.170.0180.00322.96
8.2.160.0150.00020.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00322.18
8.2.110.0040.00422.00
8.2.100.0030.01018.16
8.2.90.0040.00419.22
8.2.80.0000.00917.97
8.2.70.0060.00317.50
8.2.60.0060.00317.93
8.2.50.0080.00018.07
8.2.40.0000.00918.32
8.2.30.0040.00419.22
8.2.20.0080.00017.90
8.2.10.0030.00518.20
8.2.00.0030.00617.96
8.1.270.0040.00423.66
8.1.260.0070.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00023.71
8.1.230.0110.00019.14
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00718.44
8.1.160.0000.00822.09
8.1.150.0060.00318.91
8.1.140.0000.00717.64
8.1.130.0000.00817.85
8.1.120.0000.00817.52
8.1.110.0000.00817.49
8.1.100.0000.00717.66
8.1.90.0030.00517.52
8.1.80.0040.00417.59
8.1.70.0030.00317.61
8.1.60.0050.00317.69
8.1.50.0040.00417.71
8.1.40.0000.00817.68
8.1.30.0030.00517.76
8.1.20.0000.00817.69
8.1.10.0050.00317.69
8.1.00.0070.00017.55
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.42
8.0.270.0050.00217.15
8.0.260.0000.00717.20
8.0.250.0000.00717.01
8.0.240.0000.00616.98
8.0.230.0000.00716.95
8.0.220.0050.00217.10
8.0.210.0000.00717.02
8.0.200.0030.00316.98
8.0.190.0070.00016.97
8.0.180.0040.00417.12
8.0.170.0000.00717.09
8.0.160.0050.00317.05
8.0.150.0030.00316.88
8.0.140.0100.00016.83
8.0.130.0000.00713.50
8.0.120.0050.00316.92
8.0.110.0080.00017.06
8.0.100.0050.00316.91
8.0.90.0050.00317.04
8.0.80.0130.00317.02
8.0.70.0030.00516.99
8.0.60.0030.00616.88
8.0.50.0040.00417.09
8.0.30.0100.01217.14
8.0.20.0090.01017.40
8.0.10.0080.00016.97
8.0.00.0120.00816.78
7.4.330.0020.00215.17
7.4.320.0090.00016.60
7.4.300.0060.00016.85
7.4.290.0030.00316.85
7.4.280.0000.00716.75
7.4.270.0030.00316.82
7.4.260.0000.00616.68
7.4.250.0050.00216.61
7.4.240.0040.00416.77
7.4.230.0070.00016.84
7.4.220.0110.00716.65
7.4.210.0110.00616.81
7.4.200.0000.00816.84
7.4.160.0120.00316.66
7.4.150.0100.00717.40
7.4.140.0080.01017.86
7.4.130.0110.00716.64
7.4.120.0100.00616.55
7.4.110.0120.00316.49
7.4.100.0060.01116.95
7.4.90.0060.01516.59
7.4.80.0070.01016.73
7.4.70.0070.01016.46
7.4.60.0090.00616.64
7.4.50.0000.00516.51
7.4.40.0060.01016.69
7.4.30.0090.00616.46
7.4.00.0050.01214.90
7.3.330.0000.00513.29
7.3.320.0000.00613.53
7.3.310.0040.00416.52
7.3.300.0030.00316.52
7.3.290.0140.00716.46
7.3.280.0070.01016.42
7.3.270.0070.01017.40
7.3.260.0100.01016.68
7.3.250.0110.00616.60
7.3.240.0070.01116.54
7.3.230.0090.00916.56
7.3.210.0120.01216.70
7.3.200.0060.01219.39
7.3.190.0130.00616.55
7.3.180.0190.00316.73
7.3.170.0130.00316.90
7.3.160.0090.00616.63
7.3.120.0000.01114.95
7.3.110.0070.01414.97
7.3.100.0090.00615.33
7.3.90.0090.00315.18
7.3.80.0040.01615.03
7.3.70.0060.00915.05
7.3.60.0150.00015.08
7.3.50.0060.00615.09
7.3.40.0040.00815.06
7.3.30.0160.00015.03
7.3.20.0070.01116.98
7.3.10.0130.00316.85
7.3.00.0000.01116.64
7.2.330.0030.01516.94
7.2.320.0090.00916.71
7.2.310.0130.00316.75
7.2.300.0060.01016.82
7.2.290.0150.00416.89
7.2.250.0100.01015.22
7.2.240.0070.01415.44
7.2.230.0120.00815.34
7.2.220.0070.00715.16
7.2.210.0070.01114.86
7.2.200.0030.00715.31
7.2.190.0070.00715.29
7.2.180.0040.01115.21
7.2.170.0080.00815.26
7.2.00.0030.00919.88
7.1.330.0100.00615.95
7.1.320.0060.01015.95
7.1.310.0110.00416.27
7.1.300.0100.00315.68
7.1.290.0040.01116.04
7.1.280.0100.00316.20
7.1.270.0070.01016.01
7.1.260.0070.01015.88
7.1.200.0020.00515.94
7.1.100.0060.00318.16
7.1.70.0030.00617.38
7.1.60.0060.00917.64
7.1.50.0040.01417.22
7.1.00.0000.08022.43
7.0.200.0100.00717.01
7.0.140.0000.07722.21
7.0.60.0070.06319.92
7.0.50.0030.08017.90
7.0.40.0230.07320.29
7.0.30.0630.05720.28
7.0.20.0330.07720.16
7.0.10.0030.05720.27
7.0.00.0070.04020.18
5.6.280.0030.07321.00
5.6.210.0200.06320.60
5.6.200.0070.06318.18
5.6.190.0030.07720.48
5.6.180.0270.05020.50
5.6.170.0200.05320.58
5.6.160.0070.07320.47
5.6.150.0070.04718.19
5.6.140.0030.08718.28
5.6.130.0070.07318.13
5.6.120.0130.07720.88
5.6.110.0130.07021.00
5.6.100.0070.08720.99
5.6.90.0100.07721.12
5.6.80.0130.05020.46
5.5.350.0170.08320.32
5.5.340.0130.07317.99
5.5.330.0030.05320.38
5.5.320.0270.04320.31
5.5.310.0300.06320.42
5.5.300.0030.04017.93
5.5.290.0030.07317.97
5.5.280.0130.07320.88
5.5.270.0000.05320.75
5.5.260.0170.07020.64
5.5.250.0070.05720.69
5.5.240.0170.07720.23
5.4.450.0200.03719.39
5.4.440.0330.05719.16
5.4.430.0230.03319.48
5.4.420.0200.03719.45
5.4.410.0230.03319.39
5.4.400.0200.03718.98
5.4.390.0170.06019.06
5.4.380.0230.03318.99
5.4.370.0200.03319.00
5.4.360.0270.05319.21
5.4.350.0070.04019.21
5.4.340.0100.04718.97
5.4.320.0270.06719.21
5.4.310.0230.05719.22
5.4.300.0270.02719.08
5.4.290.0230.05019.09
5.4.280.0130.04019.07
5.4.270.0130.08019.21
5.4.260.0230.06719.19
5.4.250.0070.06719.21
5.4.240.0070.06319.18
5.4.230.0700.04319.12
5.4.220.1930.04719.30
5.4.210.1900.04019.07
5.4.200.2030.04318.93
5.4.190.2000.04719.05
5.4.180.2000.04719.12
5.4.170.1800.03319.23
5.4.160.2100.04019.21
5.4.150.1770.03719.12
5.4.140.1800.03316.50
5.4.130.1800.02716.51
5.4.120.2100.04016.54
5.4.110.1970.03016.19
5.4.100.2200.04016.33
5.4.90.1900.04016.53
5.4.80.1970.04016.54
5.4.70.1930.04016.34
5.4.60.1900.03316.53
5.4.50.1930.03716.34
5.4.40.0030.03716.36
5.4.30.0100.06716.57
5.4.20.0830.06016.32
5.4.10.1900.04016.21
5.4.00.1970.04715.77
5.3.290.2030.04314.81
5.3.280.2130.04014.73
5.3.270.2000.04314.59
5.3.260.1730.04314.50
5.3.250.1870.03014.64
5.3.240.1800.03714.71
5.3.230.2000.04014.50
5.3.220.1800.03714.47
5.3.210.2000.03714.49
5.3.200.2030.04714.56
5.3.190.2100.04014.46
5.3.180.1730.04314.53
5.3.170.2100.04714.79
5.3.160.1800.04314.57
5.3.150.1900.03314.65
5.3.140.2030.04714.47
5.3.130.1870.04314.52
5.3.120.2230.04314.52
5.3.110.0970.04314.46
5.3.100.0000.07014.04
5.3.90.0100.05714.07
5.3.80.1170.04314.11
5.3.70.2130.04314.02
5.3.60.1870.03313.91
5.3.50.1830.03713.96
5.3.40.1900.03013.96
5.3.30.2230.04314.13
5.3.20.2200.03313.67
5.3.10.2100.05013.88
5.3.00.1770.03313.65
5.2.170.1830.03711.01
5.2.160.1600.03311.09
5.2.150.1600.03311.04
5.2.140.1500.03011.09
5.2.130.1830.03311.20
5.2.120.1670.02710.96
5.2.110.1530.03011.01
5.2.100.1770.02710.93
5.2.90.1930.02710.96
5.2.80.1830.03010.95
5.2.70.1530.02311.25
5.2.60.1600.03010.93
5.2.50.1700.03311.06
5.2.40.1470.03311.15
5.2.30.0300.05710.91
5.2.20.0170.05010.97
5.2.10.0170.04310.89
5.2.00.0030.04310.62
5.1.60.0130.0339.89
5.1.50.0130.02710.15
5.1.40.0070.0309.91
5.1.30.0200.05010.42
5.1.20.0170.05010.26
5.1.10.0170.05310.00
5.1.00.0130.0239.96
5.0.50.0170.0378.44
5.0.40.0000.0238.54
5.0.30.0070.0308.10
5.0.20.0070.0178.35
5.0.10.0130.0408.05
5.0.00.0130.0638.07
4.4.90.0070.0237.79
4.4.80.0030.0237.79
4.4.70.0100.0137.79
4.4.60.0070.0137.79
4.4.50.0030.0207.79
4.4.40.0070.0507.79
4.4.30.0000.0207.79
4.4.20.0070.0137.79
4.4.10.0100.0307.79
4.4.00.0100.0377.79
4.3.110.0070.0207.79
4.3.100.0070.0307.79
4.3.90.0100.0107.79
4.3.80.0000.0307.79
4.3.70.0070.0207.79
4.3.60.0100.0237.79
4.3.50.0030.0237.79
4.3.40.0130.0407.79
4.3.30.0030.0307.79
4.3.20.0000.0307.79
4.3.10.0070.0137.79
4.3.00.0030.0237.79

preferences:
47.13 ms | 400 KiB | 5 Q