3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'string_snake_string'; $res = preg_replace("/\_(.)/e", "strtoupper('\\1')", $string); var_dump($res);

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.60.0070.01118.55
8.3.50.0150.00616.38
8.3.40.0110.00718.79
8.3.30.0070.00718.61
8.3.20.0040.00421.78
8.3.10.0080.00021.65
8.3.00.0060.00319.67
8.2.180.0090.00616.75
8.2.170.0110.00422.96
8.2.160.0030.01019.18
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00422.21
8.2.120.0000.00826.35
8.2.110.0080.00822.29
8.2.100.0040.00817.78
8.2.90.0060.00319.23
8.2.80.0030.00617.97
8.2.70.0000.00817.22
8.2.60.0030.00618.04
8.2.50.0090.00018.10
8.2.40.0020.00520.59
8.2.30.0030.00619.24
8.2.20.0000.00717.90
8.2.10.0000.00718.11
8.2.00.0030.00618.03
8.1.280.0100.01025.92
8.1.270.0040.00423.82
8.1.260.0050.00326.35
8.1.250.0000.00928.09
8.1.240.0000.00921.19
8.1.230.0070.00419.15
8.1.220.0000.00917.79
8.1.210.0000.00818.77
8.1.200.0030.00617.00
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0040.00418.50
8.1.160.0000.00718.75
8.1.150.0080.00018.73
8.1.140.0000.00719.55
8.1.130.0000.00718.73
8.1.120.0070.00017.34
8.1.110.0070.00017.37
8.1.100.0040.00417.28
8.1.90.0000.00817.36
8.1.80.0000.00717.41
8.1.70.0000.00717.40
8.1.60.0050.00317.41
8.1.50.0030.00517.33
8.1.40.0050.00217.40
8.1.30.0000.00717.63
8.1.20.0080.00017.59
8.1.10.0000.00817.37
8.1.00.0000.00717.34
8.0.300.0060.00320.10
8.0.290.0070.00016.75
8.0.280.0070.00018.36
8.0.270.0000.00817.24
8.0.260.0040.00418.93
8.0.250.0000.00716.94
8.0.240.0070.00316.93
8.0.230.0000.00716.95
8.0.220.0030.00316.87
8.0.210.0020.00516.77
8.0.200.0030.00716.88
8.0.190.0000.00716.84
8.0.180.0030.00516.98
8.0.170.0000.00716.88
8.0.160.0000.00816.91
8.0.150.0030.00316.85
8.0.140.0040.00416.73
8.0.130.0000.00813.30
8.0.120.0000.00716.74
8.0.110.0040.00416.93
8.0.100.0080.00016.92
8.0.90.0000.00716.70
8.0.80.0140.00316.94
8.0.70.0050.00216.87
8.0.60.0070.00016.77
8.0.50.0000.00816.91
8.0.30.0080.00817.00
8.0.20.0110.01117.40
8.0.10.0080.00016.97
8.0.00.0000.01716.73
7.4.330.0000.00515.55
7.4.320.0060.00016.41
7.4.300.0030.00316.43
7.4.290.0000.00716.32
7.4.280.0040.00416.57
7.4.270.0030.00316.45
7.4.260.0000.00716.49
7.4.250.0040.00416.35
7.4.240.0030.00316.54
7.4.230.0040.00416.53
7.4.220.0130.01316.59
7.4.210.0070.00716.47
7.4.200.0030.00316.55
7.4.160.0110.00516.51
7.4.150.0150.00417.40
7.4.140.0090.01017.86
7.4.130.0130.00516.35
7.4.120.0060.01616.34
7.4.110.0100.00816.16
7.4.100.0100.00716.43
7.4.90.0130.00416.47
7.4.80.0100.00719.39
7.4.70.0090.00616.52
7.4.60.0100.01016.28
7.4.50.0110.00316.49
7.4.40.0130.00316.32
7.4.30.0080.00816.52
7.4.00.0070.00714.95
7.3.330.0060.00013.11
7.3.320.0020.00312.95
7.3.310.0030.00316.24
7.3.300.0070.00016.11
7.3.290.0030.00316.03
7.3.280.0090.00816.22
7.3.270.0100.00717.40
7.3.260.0080.00816.19
7.3.250.0070.01116.29
7.3.240.0120.00416.25
7.3.230.0110.00616.32
7.3.210.0060.01016.48
7.3.200.0110.00516.30
7.3.190.0060.00916.24
7.3.180.0110.01016.14
7.3.170.0070.01716.39
7.3.160.0060.01116.31
7.2.330.0070.01016.77
7.2.320.0090.01016.82
7.2.310.0110.00716.56
7.2.300.0150.00616.60
7.2.290.0090.01316.55
7.2.60.0060.00617.02
7.2.00.0000.01619.67
7.1.200.0030.01016.05
7.1.70.0040.00417.36
7.1.60.4700.01015.58
7.1.50.0470.01033.05
7.1.40.0400.00732.60
7.1.30.0400.01732.65
7.1.20.0370.01332.59
7.1.10.0200.01314.95
7.1.00.0200.01314.67
7.0.200.0150.01116.68
7.0.190.0330.01015.00
7.0.180.0470.01314.47
7.0.170.0430.01014.38
7.0.160.0430.00014.46
7.0.150.0330.00714.46
7.0.140.0200.01014.70
7.0.130.0170.01014.85
7.0.120.0300.00314.60
7.0.110.0170.01014.47
7.0.100.0230.00314.52
7.0.90.0170.01014.30
7.0.80.0230.00314.71
7.0.70.0270.00714.39
7.0.60.0270.00714.27
7.0.50.0270.01014.60
7.0.40.0170.01014.84
7.0.30.0170.01014.61
7.0.20.0170.01014.54
7.0.10.0330.00014.66
7.0.00.0200.01714.63

preferences:
62.67 ms | 400 KiB | 5 Q