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)) { echo $route . " => " . $controller; // Det er en her route } }

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.0090.00616.61
8.3.50.0150.00621.99
8.3.40.0040.01118.98
8.3.30.0140.00019.05
8.3.20.0080.00020.21
8.3.10.0030.00523.65
8.3.00.0050.00319.67
8.2.180.0060.00916.63
8.2.170.0000.01422.96
8.2.160.0100.00320.53
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00819.36
8.2.110.0030.00620.36
8.2.100.0080.00417.91
8.2.90.0040.00418.97
8.2.80.0030.00517.97
8.2.70.0000.00917.75
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0030.00818.15
8.2.30.0070.00018.18
8.2.20.0040.00417.81
8.2.10.0000.00718.14
8.2.00.0040.00417.88
8.1.280.0120.00325.92
8.1.270.0060.00323.96
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00023.90
8.1.230.0090.00322.62
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.34
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0080.00018.65
8.1.160.0040.00422.09
8.1.150.0030.00518.76
8.1.140.0020.00517.60
8.1.130.0040.00417.85
8.1.120.0000.00717.48
8.1.110.0050.00317.60
8.1.100.0000.00717.44
8.1.90.0040.00417.50
8.1.80.0030.00417.51
8.1.70.0030.00317.56
8.1.60.0000.00817.82
8.1.50.0100.00017.70
8.1.40.0040.00417.64
8.1.30.0080.00017.73
8.1.20.0040.00417.80
8.1.10.0000.00817.62
8.1.00.0000.00817.55
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.47
8.0.270.0030.00317.24
8.0.260.0000.00617.18
8.0.250.0050.00217.10
8.0.240.0080.00016.98
8.0.230.0050.00317.06
8.0.220.0030.00316.95
8.0.210.0000.00716.96
8.0.200.0000.00617.02
8.0.190.0050.00317.12
8.0.180.0050.00316.89
8.0.170.0000.00817.08
8.0.160.0040.00416.98
8.0.150.0020.00516.97
8.0.140.0030.00516.95
8.0.130.0060.00013.55
8.0.120.0030.00517.10
8.0.110.0060.00317.01
8.0.100.0000.00716.84
8.0.90.0050.00317.04
8.0.80.0060.01016.99
8.0.70.0000.00816.83
8.0.60.0000.00716.93
8.0.50.0040.00417.07
8.0.30.0120.01017.12
8.0.20.0100.01217.40
8.0.10.0050.00217.10
8.0.00.0090.01116.73
7.4.330.0030.00315.12
7.4.320.0040.00416.81
7.4.300.0060.00016.85
7.4.290.0070.00016.85
7.4.280.0030.00916.65
7.4.270.0030.00316.82
7.4.260.0030.00516.73
7.4.250.0050.00216.77
7.4.240.0030.00316.73
7.4.230.0000.00816.71
7.4.220.0120.01516.75
7.4.210.0100.00616.87
7.4.200.0030.00316.88
7.4.160.0100.00716.48
7.4.150.0200.00317.40
7.4.140.0090.02217.86
7.4.130.0060.01016.68
7.4.120.0080.00916.54
7.4.110.0100.00716.59
7.4.100.0140.00316.63
7.4.90.0070.01016.62
7.4.80.0090.01219.39
7.4.70.0120.00416.51
7.4.60.0070.01316.73
7.4.50.0040.00016.38
7.4.40.0140.01016.57
7.4.30.0150.00316.60
7.4.00.0100.00315.06
7.3.330.0050.00013.13
7.3.320.0050.00013.30
7.3.310.0030.00316.25
7.3.300.0030.00316.40
7.3.290.0150.00316.35
7.3.280.0060.01016.39
7.3.270.0150.00517.40
7.3.260.0150.00916.45
7.3.250.0090.00816.80
7.3.240.0110.01116.87
7.3.230.0110.00716.46
7.3.210.0070.01016.55
7.3.200.0060.00919.39
7.3.190.0030.01416.78
7.3.180.0100.00716.48
7.3.170.0030.01216.53
7.3.160.0140.00316.66
7.3.120.0120.00615.27
7.2.330.0110.01116.76
7.2.320.0140.00416.69
7.2.310.0030.01516.86
7.2.300.0140.00316.73
7.2.290.0030.01316.89
7.2.00.0060.00919.65
7.1.100.0080.00417.89
7.1.70.0040.00416.98
7.1.60.0030.02019.70
7.1.50.0120.01217.11
7.1.00.0030.07722.59
7.0.200.0030.01016.57
7.0.140.0100.06321.95
7.0.60.0130.07719.78
7.0.50.0070.06017.67
7.0.40.0000.04720.29
7.0.30.0500.07020.06
7.0.20.0300.07720.18
7.0.10.0100.05720.32
7.0.00.0100.08320.04
5.6.280.0070.07021.04
5.6.210.0100.05720.75
5.6.200.0000.05018.18
5.6.190.0070.08020.53
5.6.180.3270.05020.43
5.6.170.0300.03320.41
5.6.160.0070.06720.33
5.6.150.0070.08018.18
5.6.140.0070.05018.16
5.6.130.0000.04318.23
5.6.120.0070.04021.12
5.6.110.0070.08321.00
5.6.100.0100.04021.03
5.6.90.0070.09021.06
5.6.80.0100.06720.28
5.6.70.4370.03720.43
5.5.350.0100.08020.43
5.5.340.0070.08018.00
5.5.330.0070.04020.27
5.5.320.0300.04320.34
5.5.310.0230.04720.20
5.5.300.0070.08017.89
5.5.290.0030.08317.96
5.5.280.0100.08020.76
5.5.270.0070.08320.78
5.5.260.0100.07020.86
5.5.250.0130.08020.77
5.5.240.0170.03320.18
5.4.450.0270.05043.90
5.4.440.0370.04743.86
5.4.430.0970.03719.56
5.4.420.1230.04719.27
5.4.410.0270.02343.77
5.4.400.0400.04343.77
5.4.390.0330.04043.77
5.4.380.0230.05318.62
5.4.370.0130.05318.71
5.4.360.0100.05718.67
5.4.350.0070.06018.58
5.4.340.0200.04718.68
5.4.320.0040.03712.46
5.4.310.0030.04112.45
5.4.300.0050.03812.46
5.4.290.0090.03512.45
5.4.280.0050.03612.35
5.4.270.0080.03412.35
5.4.260.0040.04012.35
5.4.250.0040.04012.35
5.4.240.0080.03412.35
5.4.230.0050.04012.34
5.4.220.0050.03712.34
5.4.210.0080.03312.34
5.4.200.0040.04012.34
5.4.190.0080.03412.34
5.4.180.0080.04312.34
5.4.170.0060.03512.35
5.4.160.0100.03312.34
5.4.150.0060.03812.34
5.4.140.0070.03812.03
5.4.130.0130.03712.02
5.4.120.0050.03711.97
5.4.110.0070.03411.97
5.4.100.0030.03811.97
5.4.90.0080.03511.96
5.4.80.0070.03611.97
5.4.70.0060.03311.96
5.4.60.0080.03211.96
5.4.50.0040.03711.96
5.4.40.0070.03311.95
5.4.30.0040.03711.95
5.4.20.0100.03111.95
5.4.10.0050.03511.95
5.4.00.0050.04011.44
5.3.290.0070.03812.80
5.3.280.0100.03312.71
5.3.270.0060.04012.73
5.3.260.0100.04512.71
5.3.250.0060.03912.71
5.3.240.0090.04012.72
5.3.230.0060.04212.71
5.3.220.0050.03812.68
5.3.210.0110.03412.68
5.3.200.0070.04012.68
5.3.190.0050.04212.68
5.3.180.0060.03712.68
5.3.170.0040.03812.67
5.3.160.0080.04312.67
5.3.150.0080.03512.67
5.3.140.0040.03812.66
5.3.130.0060.04212.65
5.3.120.0070.04012.66
5.3.110.0040.04112.66
5.3.100.0080.03512.12
5.3.90.0100.03812.08
5.3.80.0060.03912.07
5.3.70.0090.03812.08
5.3.60.0040.03912.07
5.3.50.0090.03612.00
5.3.40.0040.03912.00
5.3.30.0050.03511.95
5.3.20.0060.03511.73
5.3.10.0060.04011.70
5.3.00.0080.03811.69
5.2.170.0070.0319.19
5.2.160.0070.0339.19
5.2.150.0100.0299.19
5.2.140.0040.0379.18
5.2.130.0080.0289.14
5.2.120.0040.0299.14
5.2.110.0040.0309.16
5.2.100.0030.0309.15
5.2.90.0030.0309.15
5.2.80.0030.0349.15
5.2.70.0070.0299.14
5.2.60.0030.0359.10
5.2.50.0030.0339.07
5.2.40.0070.0359.05
5.2.30.0070.0349.02
5.2.20.0060.0279.02
5.2.10.0030.0308.92
5.2.00.0090.0258.78
5.1.60.0090.0218.07
5.1.50.0100.0338.06
5.1.40.0050.0248.04
5.1.30.0030.0278.39
5.1.20.0060.0268.41
5.1.10.0060.0288.14
5.1.00.0050.0258.14
5.0.50.0020.0216.62
5.0.40.0030.0196.48
5.0.30.0040.0336.29
5.0.20.0080.0216.26
5.0.10.0030.0216.24
5.0.00.0020.0336.23
4.4.90.0050.0204.78
4.4.80.0010.0164.75
4.4.70.0030.0254.75
4.4.60.0040.0134.76
4.4.50.0040.0154.77
4.4.40.0070.0214.71
4.4.30.0050.0234.76
4.4.20.0020.0164.85
4.4.10.0010.0184.85
4.4.00.0020.0264.76
4.3.110.0020.0164.66
4.3.100.0040.0154.67
4.3.90.0050.0174.64
4.3.80.0030.0254.59
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0040.0224.54
4.3.30.0010.0173.28
4.3.20.0030.0183.26
4.3.10.0030.0173.21
4.3.00.0000.01743.77

preferences:
50.32 ms | 401 KiB | 5 Q