3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'string_snake_string'; $res = preg_replace_callback('/\_(.)/', function($match) { var_dump($match); return ucfirst($match); }, $field); 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.70.0090.00616.75
8.3.60.0030.01418.65
8.3.50.0110.00716.63
8.3.40.0110.00718.96
8.3.30.0120.00318.72
8.3.20.0070.00021.76
8.3.10.0080.00021.85
8.3.00.0050.00319.54
8.2.180.0120.00417.00
8.2.170.0060.00822.96
8.2.160.0070.00719.29
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00622.11
8.2.120.0080.00026.35
8.2.110.0030.00621.13
8.2.100.0000.01217.91
8.2.90.0060.00318.16
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0000.00720.55
8.2.30.0000.00821.11
8.2.20.0050.00318.15
8.2.10.0080.00018.09
8.2.00.0040.00418.02
8.1.280.0140.00725.92
8.1.270.0030.00523.83
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0090.00023.79
8.1.230.0000.01221.04
8.1.220.0040.00417.74
8.1.210.0080.00318.85
8.1.200.0040.00417.47
8.1.190.0040.00417.48
8.1.180.0000.00918.10
8.1.170.0030.00618.46
8.1.160.0030.00518.84
8.1.150.0040.00418.91
8.1.140.0050.00319.65
8.1.130.0000.00718.91
8.1.120.0040.00417.52
8.1.110.0070.00017.62
8.1.100.0000.00817.61
8.1.90.0040.00417.60
8.1.80.0050.00217.59
8.1.70.0050.00217.61
8.1.60.0000.00717.62
8.1.50.0030.00517.56
8.1.40.0030.00517.67
8.1.30.0070.00017.77
8.1.20.0040.00417.79
8.1.10.0020.00517.49
8.1.00.0040.00417.43
8.0.300.0080.00020.07
8.0.290.0060.00316.75
8.0.280.0040.00418.37
8.0.270.0000.00817.26
8.0.260.0050.00319.08
8.0.250.0030.00317.04
8.0.240.0030.00716.98
8.0.230.0000.00717.07
8.0.220.0000.00716.95
8.0.210.0000.00716.92
8.0.200.0050.00317.03
8.0.190.0070.00017.12
8.0.180.0080.00017.13
8.0.170.0050.00317.13
8.0.160.0030.00617.12
8.0.150.0000.00716.98
8.0.140.0030.00316.92
8.0.130.0090.00013.57
8.0.120.0000.00716.89
8.0.110.0050.00316.93
8.0.100.0060.00316.98
8.0.90.0000.00717.17
8.0.80.0030.01417.09
8.0.70.0040.00417.07
8.0.60.0000.00817.17
8.0.50.0000.00817.13
8.0.30.0080.00717.24
8.0.20.0110.00717.40
8.0.10.0000.00717.24
8.0.00.0070.01016.65
7.4.330.0020.00215.55
7.4.320.0000.00616.76
7.4.300.0030.00316.75
7.4.290.0070.00016.73
7.4.280.0070.00016.75
7.4.270.0030.00316.73
7.4.260.0050.00416.70
7.4.250.0000.00716.79
7.4.240.0030.00316.68
7.4.230.0030.00316.65
7.4.220.0040.01416.77
7.4.210.0070.00716.80
7.4.200.0000.00716.77
7.4.160.0090.00716.58
7.4.150.0140.01117.40
7.4.140.0120.00617.86
7.4.130.0060.01216.75
7.4.120.0120.01116.64
7.4.110.0140.00516.56
7.4.100.0000.01616.71
7.4.90.0100.01016.81
7.4.80.0170.00619.39
7.4.70.0120.00916.67
7.4.60.0120.00616.68
7.4.50.0040.01516.70
7.4.40.0090.00616.75
7.4.30.0080.00916.74
7.4.00.0100.00315.25
7.3.330.0040.00413.31
7.3.320.0030.00313.47
7.3.310.0030.00316.32
7.3.300.0050.00216.44
7.3.290.0070.00016.40
7.3.280.0060.01116.41
7.3.270.0070.01117.40
7.3.260.0110.00816.58
7.3.250.0060.01216.52
7.3.240.0090.00916.57
7.3.230.0090.00916.72
7.3.210.0090.00916.57
7.3.200.0060.00916.63
7.3.190.0100.00716.66
7.3.180.0120.00416.52
7.3.170.0060.01116.63
7.3.160.0120.00416.51
7.3.10.0050.00916.79
7.3.00.0040.00816.68
7.2.330.0100.00716.48
7.2.320.0090.00916.75
7.2.310.0070.01016.65
7.2.300.0030.01816.94
7.2.290.0100.01416.59
7.2.130.0090.00916.79
7.2.120.0100.00316.66
7.2.110.0000.01216.87
7.2.100.0090.00417.01
7.2.90.0000.01217.05
7.2.80.0070.00716.95
7.2.70.0030.01017.07
7.2.60.0100.00517.08
7.2.50.0080.00617.07
7.2.40.0040.00817.03
7.2.30.0030.00917.21
7.2.20.0030.00816.99
7.2.10.0120.00316.83
7.2.00.0130.00017.14
7.1.250.0060.00615.79
7.1.200.0070.00415.86
7.1.70.0070.00317.38
7.1.60.0000.01417.39
7.1.50.0170.01734.67
7.1.40.0170.01334.25
7.1.30.0200.01034.50
7.1.20.0170.01034.67
7.1.10.0000.01316.65
7.1.00.0070.01016.93
7.0.200.0190.00616.66
7.0.190.0100.00716.55
7.0.180.0300.01316.43
7.0.170.0030.01016.41
7.0.160.0000.01716.29
7.0.150.0030.01016.27
7.0.140.0000.01316.50
7.0.130.0000.01716.48
7.0.120.0070.00716.52
7.0.110.0070.00716.32
7.0.100.0070.00716.33
7.0.90.0070.00316.34
7.0.80.0000.01016.53
7.0.70.0070.00316.27
7.0.60.0000.01316.16
7.0.50.0030.00716.40
7.0.40.0070.00716.55
7.0.30.0000.01016.52
7.0.20.0030.01016.62
7.0.10.0070.00716.61
7.0.00.0100.00716.46

preferences:
64.15 ms | 401 KiB | 5 Q