3v4l.org

run code in 300+ PHP versions simultaneously
<?php $this_entered_uri = "some/ads123/test1"; echo preg_replace_callback('/some\/([^\/]+)\/([^\/]+).*/', function($x) { return 'some/' . preg_replace('~\D+~', '', $x[1]) . '/' . $x[2]; }, $this_entered_uri);

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.00716.63
8.3.50.0070.00716.51
8.3.40.0110.00422.03
8.3.30.0090.00618.81
8.3.20.0080.00024.18
8.3.10.0050.00324.66
8.3.00.0000.00826.16
8.2.180.0090.00925.92
8.2.170.0140.00419.21
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0080.00324.66
8.2.130.0030.00526.16
8.2.120.0040.00420.92
8.2.110.0090.00022.31
8.2.100.0060.00617.97
8.2.90.0050.00318.00
8.2.80.0060.00318.94
8.2.70.0030.00617.75
8.2.60.0050.00317.75
8.2.50.0000.00817.88
8.2.40.0000.00817.88
8.2.30.0050.00319.38
8.2.20.0080.00018.06
8.2.10.0080.00019.26
8.2.00.0080.00019.15
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0000.00828.09
8.1.240.0110.00022.46
8.1.230.0080.00417.89
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0080.00017.48
8.1.190.0050.00317.36
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0040.00419.04
8.1.150.0000.00718.79
8.1.140.0080.00018.91
8.1.130.0000.00720.30
8.1.120.0070.00017.60
8.1.110.0060.00317.58
8.1.100.0050.00317.61
8.1.90.0040.00417.70
8.1.80.0060.00517.60
8.1.70.0000.00717.64
8.1.60.0030.00617.69
8.1.50.0050.00317.66
8.1.40.0030.00617.67
8.1.30.0080.00017.86
8.1.20.0000.00817.64
8.1.10.0030.00917.69
8.1.00.0000.00717.58
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.38
8.0.270.0030.00316.88
8.0.260.0030.00320.13
8.0.250.0030.00317.14
8.0.240.0000.00717.11
8.0.230.0070.00017.05
8.0.220.0000.00817.03
8.0.210.0000.00817.06
8.0.200.0030.00317.08
8.0.190.0040.00417.07
8.0.180.0000.00716.96
8.0.170.0000.00917.04
8.0.160.0000.01017.02
8.0.150.0070.00017.00
8.0.140.0080.00016.96
8.0.130.0040.00413.48
8.0.120.0050.00316.98
8.0.110.0000.00716.95
8.0.100.0040.00417.11
8.0.90.0000.00716.90
8.0.80.0100.00417.02
8.0.70.0000.00716.89
8.0.60.0000.00817.00
8.0.50.0070.00016.85
8.0.30.0070.01017.26
8.0.20.0040.01317.37
8.0.10.0050.00217.00
8.0.00.0140.01317.08
7.4.330.0000.00516.74
7.4.320.0000.00616.82
7.4.300.0040.00416.76
7.4.290.0030.00416.76
7.4.280.0000.01216.80
7.4.270.0000.00716.76
7.4.260.0000.00613.41
7.4.250.0000.00916.64
7.4.240.0080.00016.82
7.4.230.0000.00716.88
7.4.220.0000.00716.89
7.4.210.0090.00716.78
7.4.200.0050.00316.57
7.4.130.0140.01016.78
7.4.120.0070.01116.78
7.4.110.0120.00816.41
7.4.100.0060.01316.45
7.4.90.0090.00916.73
7.4.80.0140.00316.67
7.4.70.0160.00316.57
7.4.60.0070.01016.50
7.4.50.0090.01116.68
7.4.40.0110.00816.63
7.4.30.0120.00816.44
7.4.20.0070.01116.78
7.4.10.0050.01316.54
7.4.00.0030.01516.68
7.3.330.0030.00316.36
7.3.320.0060.00013.45
7.3.310.0070.00016.34
7.3.300.0000.00716.50
7.3.290.0070.00816.36
7.3.260.0140.00316.75
7.3.240.0230.00816.80
7.3.230.0180.00616.50
7.3.220.0140.00516.49
7.3.210.0180.00316.32
7.3.200.0100.00716.75
7.3.190.0150.00316.79
7.3.180.0150.00316.40
7.3.170.0030.01616.77
7.3.160.0190.00416.57
7.3.150.0160.00316.27
7.3.140.0140.00516.59
7.3.130.0160.00316.57
7.3.120.0140.00516.58
7.3.110.0110.00716.75
7.3.100.0110.00716.44
7.3.90.0120.00816.34
7.3.80.0080.00916.54
7.3.70.0080.01316.60
7.3.60.0140.00716.25
7.3.50.0160.00316.38
7.3.40.0070.01016.54
7.3.30.0040.01416.57
7.3.20.0150.00616.31
7.3.10.0170.00416.44
7.3.00.0090.01216.52
7.2.340.0120.00716.61
7.2.330.0120.00916.53
7.2.320.0130.00916.79
7.2.310.0110.00816.84
7.2.300.0100.01016.73
7.2.290.0100.01016.75
7.2.280.0080.01216.88
7.2.270.0060.01316.96
7.2.260.0110.00816.68
7.2.250.0100.01016.73
7.2.240.0100.01316.79
7.2.230.0150.00516.72
7.2.220.0090.01216.70
7.2.210.0110.00816.63
7.2.200.0110.01116.80
7.2.190.0160.00316.68
7.2.180.0160.00416.62
7.2.170.0120.00816.58
7.2.160.0160.00516.69
7.2.150.0110.01116.72
7.2.140.0120.00916.83
7.2.130.0160.00316.80
7.2.120.0060.01516.79
7.2.110.0150.00916.76
7.2.100.0120.00816.81
7.2.90.0090.01316.85
7.2.80.0140.01016.74
7.2.70.0130.00916.81
7.2.60.0160.00816.71
7.2.50.0140.00716.85
7.2.40.0110.01116.70
7.2.30.0560.00916.75
7.2.20.0080.01516.79
7.2.10.0080.01316.69
7.2.00.0180.00416.86

preferences:
32.41 ms | 400 KiB | 5 Q