3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uri = 'administrator/clients/client/11'; // function input $routes = array( 'administrator/clients' => 'administrator/clients', 'administrator/client/(:num)' => 'administrator/clients/client/$1', ); foreach ($routes as $route => $controller) { if (preg_match('/(\$\d+)/', $controller, $matches)) { var_dump($matches); } }

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.0140.00016.73
8.3.50.0110.00422.05
8.3.40.0080.00818.69
8.3.30.0060.00919.00
8.3.20.0080.00020.16
8.3.10.0040.01123.59
8.3.00.0040.00419.56
8.2.180.0040.01216.72
8.2.170.0040.01122.96
8.2.160.0110.00420.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00619.38
8.2.110.0150.00622.18
8.2.100.0000.01217.98
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0080.00017.59
8.2.60.0030.00517.89
8.2.50.0090.00018.07
8.2.40.0050.01017.91
8.2.30.0000.00718.14
8.2.20.0000.00817.89
8.2.10.0050.00318.15
8.2.00.0030.00517.77
8.1.280.0070.00725.92
8.1.270.0000.01023.96
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00023.82
8.1.230.0040.00719.07
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0030.00618.71
8.1.160.0000.00822.11
8.1.150.0000.00718.75
8.1.140.0080.00017.51
8.1.130.0040.00417.75
8.1.120.0040.00417.61
8.1.110.0070.00017.61
8.1.100.0000.00717.61
8.1.90.0030.00317.63
8.1.80.0040.00417.54
8.1.70.0000.00717.57
8.1.60.0040.00417.79
8.1.50.0030.00517.64
8.1.40.0050.00317.68
8.1.30.0000.00817.63
8.1.20.0040.00417.72
8.1.10.0000.00817.56
8.1.00.0030.00617.55
8.0.300.0040.00418.77
8.0.290.0050.00216.88
8.0.280.0000.00718.40
8.0.270.0070.00017.13
8.0.260.0030.00317.20
8.0.250.0000.00716.96
8.0.240.0050.00317.10
8.0.230.0060.00317.08
8.0.220.0030.00316.95
8.0.210.0070.00016.87
8.0.200.0000.00616.96
8.0.190.0040.00417.10
8.0.180.0000.00717.11
8.0.170.0060.00317.12
8.0.160.0050.00216.99
8.0.150.0040.00417.02
8.0.140.0040.00416.91
8.0.130.0000.00613.55
8.0.120.0030.00517.05
8.0.110.0040.00417.00
8.0.100.0040.00417.02
8.0.90.0040.00416.84
8.0.80.0070.01016.97
8.0.70.0050.00216.91
8.0.60.0050.00217.14
8.0.50.0040.00417.07
8.0.30.0110.01017.21
8.0.20.0130.00917.40
8.0.10.0030.00517.02
8.0.00.0110.00716.85
7.4.330.0000.00515.02
7.4.320.0030.00616.70
7.4.300.0060.00016.85
7.4.290.0000.00816.79
7.4.280.0040.00716.70
7.4.270.0030.00316.57
7.4.260.0000.00816.75
7.4.250.0050.00216.72
7.4.240.0030.00416.74
7.4.230.0070.00016.84
7.4.220.0070.01116.71
7.4.210.0070.01116.75
7.4.200.0000.00816.63
7.4.160.0060.01016.76
7.4.150.0100.01017.40
7.4.140.0140.00617.86
7.4.130.0070.00916.79
7.4.120.0090.00916.72
7.4.110.0140.00416.61
7.4.100.0060.01616.74
7.4.90.0100.00716.75
7.4.80.0120.00919.39
7.4.70.0100.00716.45
7.4.60.0100.00716.62
7.4.50.0030.00616.40
7.4.40.0120.00516.58
7.4.30.0070.01016.46
7.4.00.0060.00814.85
7.3.330.0030.00313.34
7.3.320.0050.00013.27
7.3.310.0000.00716.28
7.3.300.0000.00716.39
7.3.290.0060.00916.39
7.3.280.0100.00916.41
7.3.270.0070.01717.40
7.3.260.0040.01316.78
7.3.250.0100.01216.47
7.3.240.0120.00616.79
7.3.230.0030.01316.39
7.3.210.0000.01816.68
7.3.200.0080.00819.39
7.3.190.0040.01716.86
7.3.180.0090.00916.56
7.3.170.0090.00616.38
7.3.160.0120.00416.61
7.3.120.0020.01615.00
7.3.110.0060.01314.93
7.3.100.0060.00914.94
7.3.90.0090.00314.98
7.3.80.0100.00314.93
7.3.70.0080.00014.93
7.3.60.0090.00015.04
7.3.50.0000.01114.95
7.3.40.0070.00715.07
7.3.30.0030.01115.02
7.3.20.0100.00316.88
7.3.10.0050.00516.73
7.3.00.0040.00716.71
7.2.330.0080.01116.82
7.2.320.0070.01116.64
7.2.310.0180.00016.73
7.2.300.0150.00316.54
7.2.290.0060.00916.75
7.2.250.0090.00915.17
7.2.240.0100.01015.16
7.2.230.0060.00915.32
7.2.220.0030.00914.94
7.2.210.0000.01415.19
7.2.200.0000.01515.30
7.2.190.0030.01015.05
7.2.180.0070.01115.32
7.2.170.0090.00314.95
7.2.00.0030.01019.46
7.1.330.0070.00715.91
7.1.320.0070.00316.16
7.1.310.0070.00416.07
7.1.300.0000.00916.02
7.1.290.0030.00715.77
7.1.280.0030.01215.84
7.1.270.0040.00815.67
7.1.260.0070.01015.77
7.1.100.0230.01116.68
7.1.70.0030.00316.99
7.1.60.0100.00719.70
7.1.50.0070.01716.82
7.1.00.0100.07022.31
7.0.200.0080.00316.77
7.0.140.0030.08722.02
7.0.60.0070.07019.96
7.0.50.0070.03717.82
7.0.40.0100.05320.05
7.0.30.0300.08020.32
7.0.20.0200.04020.21
7.0.10.0200.06320.18
7.0.00.0100.05020.18
5.6.280.0030.07020.80
5.6.210.0070.08020.64
5.6.200.0130.03018.18
5.6.190.0070.08720.45
5.6.180.0070.04320.61
5.6.170.0200.03720.48
5.6.160.0130.07720.48
5.6.150.0130.07318.22
5.6.140.0100.05018.17
5.6.130.0030.08318.22
5.6.120.0070.09021.13
5.6.110.0070.05021.02
5.6.100.0200.06721.13
5.6.90.0030.04320.88
5.6.80.0030.04020.49
5.5.350.0100.08020.40
5.5.340.0030.05017.99
5.5.330.0170.07720.36
5.5.320.0200.05720.18
5.5.310.0300.03720.28
5.5.300.0100.06317.96
5.5.290.0100.04017.88
5.5.280.0070.08320.73
5.5.270.0100.04020.97
5.5.260.0170.06720.76
5.5.250.0000.08720.69
5.5.240.0030.08720.23
5.4.450.0130.05343.89
5.4.440.0200.04343.86
5.4.430.0230.03743.79
5.4.420.0230.04043.77
5.4.410.0370.04343.77
5.4.400.0270.03743.77
5.4.390.0330.04043.77
5.4.380.0070.06718.61
5.4.370.0200.04718.67
5.4.360.0200.04718.59
5.4.350.0270.04318.73
5.4.340.0170.05018.71
5.4.320.0050.03812.46
5.4.310.0200.08512.45
5.4.300.0030.03912.46
5.4.290.0050.03812.45
5.4.280.0080.03412.35
5.4.270.0070.03512.35
5.4.260.0070.04112.35
5.4.250.0070.03712.35
5.4.240.0040.03712.35
5.4.230.0030.04012.34
5.4.220.0030.03812.34
5.4.210.0040.03712.34
5.4.200.0060.03812.34
5.4.190.0050.03612.34
5.4.180.0070.03512.34
5.4.170.0070.03912.35
5.4.160.0050.03712.35
5.4.150.0080.03412.34
5.4.140.0050.03912.03
5.4.130.0070.03312.01
5.4.120.0070.03411.97
5.4.110.0070.03411.96
5.4.100.0070.04211.97
5.4.90.0040.03911.97
5.4.80.0070.03511.96
5.4.70.0050.03511.96
5.4.60.0040.03611.96
5.4.50.0050.03511.96
5.4.40.0050.03611.95
5.4.30.0030.03911.95
5.4.20.0130.03311.95
5.4.10.0080.03811.95
5.4.00.0080.03911.44
5.3.290.0090.04612.80
5.3.280.0060.04212.71
5.3.270.0090.04412.73
5.3.260.0040.04112.71
5.3.250.0090.03512.72
5.3.240.0070.03712.72
5.3.230.0070.03712.71
5.3.220.0080.03512.68
5.3.210.0050.04012.68
5.3.200.0050.03712.68
5.3.190.0040.03812.67
5.3.180.0080.03312.67
5.3.170.0060.03512.67
5.3.160.0040.03912.67
5.3.150.0050.03812.67
5.3.140.0060.03612.66
5.3.130.0080.03712.66
5.3.120.0090.03612.66
5.3.110.0050.04312.66
5.3.100.0050.03812.12
5.3.90.0050.03812.08
5.3.80.0070.03612.08
5.3.70.0070.03512.08
5.3.60.0090.03412.07
5.3.50.0110.03112.00
5.3.40.0070.03412.00
5.3.30.0050.03511.95
5.3.20.0070.03711.73
5.3.10.0070.03611.70
5.3.00.0070.03511.69
5.2.170.0040.0319.19
5.2.160.0060.0289.19
5.2.150.0050.0299.19
5.2.140.0050.0299.19
5.2.130.0030.0309.15
5.2.120.0090.0249.15
5.2.110.0050.0309.16
5.2.100.0050.0299.15
5.2.90.0090.0259.15
5.2.80.0040.0319.14
5.2.70.0040.0319.14
5.2.60.0020.0369.10
5.2.50.0060.0339.07
5.2.40.0080.0289.05
5.2.30.0060.0279.02
5.2.20.0050.0279.02
5.2.10.0040.0298.92
5.2.00.0010.0328.78
5.1.60.0020.0268.07
5.1.50.0090.0268.06
5.1.40.0050.0238.04
5.1.30.0080.0248.39
5.1.20.0020.0288.41
5.1.10.0060.0238.14
5.1.00.0070.0298.14
5.0.50.0030.0256.61
5.0.40.0060.0176.48
5.0.30.0030.0376.29
5.0.20.0070.0166.26
5.0.10.0030.0206.23
5.0.00.0060.0276.23
4.4.90.0040.0144.77
4.4.80.0060.0124.75
4.4.70.0000.0184.75
4.4.60.0040.0174.75
4.4.50.0040.0144.77
4.4.40.0020.0314.71
4.4.30.0030.0154.76
4.4.20.0030.0154.85
4.4.10.0040.0204.85
4.4.00.0040.0304.76
4.3.110.0010.0194.67
4.3.100.0030.0174.66
4.3.90.0030.0154.63
4.3.80.0020.0254.58
4.3.70.0060.0164.63
4.3.60.0040.0164.63
4.3.50.0040.0204.63
4.3.40.0010.0314.54
4.3.30.0030.0213.28
4.3.20.0030.0273.26
4.3.10.0040.0203.21
4.3.00.0100.01743.78

preferences:
40.34 ms | 401 KiB | 5 Q