3v4l.org

run code in 300+ PHP versions simultaneously
<?php $found = null; $route = '/_ticket/_show/xxx'; foreach ( explode( '/', trim( $route, '/' ) ) as $part => $r ) { $uscore = strpos( $r, '_' ); $times = substr_count( $r, '_' ); if ( 1 != $times || 0 != $uscore ) { continue; } $found = $part; break; } if ( null !== $found ) { $parts = explode( '/', trim( $route, '/' ) ); $before = array_slice( $parts, 0, $found, true ); $after = array_slice( $parts, $found + 1, null, true ); $replacePart = ltrim( $parts[ $found ], '_' ); $before[] = $replacePart; $before[] = $replacePart; foreach ( $after as $part ) { $before[] = $part; } var_dump( $before ); }

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.00718.30
8.3.50.0090.00722.11
8.3.40.0070.00718.82
8.3.30.0070.01318.79
8.3.20.0050.00318.77
8.3.10.0040.00419.51
8.3.00.0080.00023.58
8.2.180.0140.00416.63
8.2.170.0100.01022.96
8.2.160.0100.00720.34
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00019.48
8.2.110.0050.00522.12
8.2.100.0040.00717.91
8.2.90.0080.00019.17
8.2.80.0060.00318.05
8.2.70.0000.00817.50
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0000.00918.33
8.2.30.0060.00319.82
8.2.20.0070.00017.66
8.2.10.0000.00717.70
8.2.00.0000.00817.64
8.1.280.0110.00725.92
8.1.270.0080.00023.99
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00920.82
8.1.230.0120.00020.91
8.1.220.0040.00418.77
8.1.210.0060.00319.04
8.1.200.0080.00317.35
8.1.190.0050.00217.41
8.1.180.0000.00718.10
8.1.170.0000.00818.61
8.1.160.0040.00418.97
8.1.150.0040.00418.67
8.1.140.0040.00417.47
8.1.130.0000.00717.88
8.1.120.0050.00217.53
8.1.110.0080.00017.36
8.1.100.0000.00817.52
8.1.90.0030.00517.38
8.1.80.0040.00417.48
8.1.70.0030.00317.52
8.1.60.0070.00417.62
8.1.50.0050.00317.57
8.1.40.0000.00717.50
8.1.30.0080.00017.49
8.1.20.0080.00017.55
8.1.10.0040.00417.44
8.1.00.0100.00017.43
8.0.300.0030.00919.95
8.0.290.0040.00416.75
8.0.280.0030.00518.47
8.0.270.0030.00317.23
8.0.260.0000.00616.89
8.0.250.0060.00316.98
8.0.240.0040.00417.00
8.0.230.0070.00016.88
8.0.220.0030.00316.91
8.0.210.0000.00716.81
8.0.200.0060.00016.91
8.0.190.0020.00516.90
8.0.180.0080.00017.00
8.0.170.0000.00716.82
8.0.160.0030.00316.94
8.0.150.0000.00716.84
8.0.140.0000.00716.91
8.0.130.0060.00013.38
8.0.120.0000.00716.91
8.0.110.0000.00916.78
8.0.100.0000.00816.87
8.0.90.0040.00416.86
8.0.80.0140.00416.84
8.0.70.0000.00716.88
8.0.60.0040.00416.90
8.0.50.0040.00417.00
8.0.30.0120.00917.18
8.0.20.0060.01217.40
8.0.10.0000.00716.87
8.0.00.0140.00816.76
7.4.330.0050.00014.76
7.4.320.0030.00316.58
7.4.300.0030.00316.47
7.4.290.0080.00316.66
7.4.280.0000.00816.61
7.4.270.0080.00016.52
7.4.260.0070.00016.60
7.4.250.0080.00016.56
7.4.240.0030.00316.45
7.4.230.0070.00016.56
7.4.220.0100.00716.56
7.4.210.0080.00916.57
7.4.200.0000.00716.43
7.4.190.0030.00616.66
7.4.160.0050.01116.39
7.4.150.0070.01617.40
7.4.140.0110.01117.86
7.4.130.0070.01016.58
7.4.120.0140.00616.64
7.4.110.0040.01316.45
7.4.100.0130.00316.54
7.4.90.0130.02516.52
7.4.80.0120.00419.37
7.4.70.0100.00716.66
7.4.60.0110.00616.31
7.4.50.0040.00416.21
7.4.40.0030.01322.27
7.4.30.0250.00016.63
7.4.00.0080.00715.08
7.3.330.0000.00513.09
7.3.320.0050.00013.13
7.3.310.0080.00016.15
7.3.300.0030.00316.38
7.3.290.0000.01316.39
7.3.280.0100.00716.40
7.3.270.0140.00317.40
7.3.260.0140.00618.24
7.3.250.0070.01116.59
7.3.240.0070.01016.35
7.3.230.0110.00816.72
7.3.210.0110.00816.40
7.3.200.0140.00719.39
7.3.190.0060.01216.46
7.3.180.0130.00316.57
7.3.170.0060.00916.53
7.3.160.0150.00316.44
7.3.120.0040.01214.82
7.3.110.0020.01514.82
7.3.100.0050.00914.81
7.3.90.0050.01014.85
7.3.80.0060.00614.96
7.3.70.0090.00514.72
7.3.60.0020.01414.68
7.3.50.0070.00714.95
7.3.40.0030.01214.89
7.3.30.0030.01314.77
7.3.20.0050.00716.56
7.3.10.0030.00916.64
7.3.00.0020.00916.69
7.2.330.0080.01116.46
7.2.320.0030.01316.54
7.2.310.0110.00716.78
7.2.300.0150.00616.51
7.2.290.0100.00616.48
7.2.250.0090.01014.70
7.2.240.0050.01015.11
7.2.230.0070.00715.00
7.2.220.0080.00815.03
7.2.210.0080.00815.18
7.2.200.0050.01115.08
7.2.190.0100.00714.92
7.2.180.0120.00214.94
7.2.170.0030.01214.86
7.2.160.0030.01414.84
7.2.150.0060.00916.55
7.2.140.0070.01117.02
7.2.130.0120.00317.10
7.2.120.0040.01116.89
7.2.110.0090.00616.88
7.2.100.0040.01416.82
7.2.90.0000.01117.05
7.2.80.0060.01216.99
7.2.70.0060.00616.94
7.2.60.0090.00617.05
7.2.50.0090.00616.70
7.2.40.0110.00417.05
7.2.30.0070.01017.11
7.2.20.0070.00716.86
7.2.10.0060.00616.94
7.2.00.0000.01816.96
7.1.330.0060.00515.84
7.1.320.0070.00315.64
7.1.310.0080.00815.99
7.1.300.0030.01015.79
7.1.290.0070.00815.87
7.1.280.0050.00915.80
7.1.270.0070.00315.57
7.1.260.0030.01215.64
7.1.250.0030.01315.60
7.1.100.0060.00617.83
7.1.70.0100.00017.05
7.1.60.0130.01019.40
7.1.50.0070.01416.83
7.1.00.0030.07322.46
7.0.200.0000.01616.73
7.0.140.0000.07022.21
7.0.70.0030.04721.65
7.0.60.0000.04721.86
7.0.50.0030.08322.06
7.0.40.0000.05320.07
7.0.30.0070.06320.07
7.0.20.0070.07320.11
7.0.10.0070.08020.14
7.0.00.0070.04720.04
5.6.280.0000.07721.10
5.6.220.0000.07720.61
5.6.210.0130.05020.49
5.6.200.0030.04021.05
5.6.190.0030.09021.04
5.6.180.0070.07721.11
5.6.170.0070.06020.96
5.6.160.0070.07021.02
5.6.150.0030.08021.05
5.6.140.0070.08321.14
5.6.130.0070.08021.03
5.6.120.0100.08021.13
5.6.110.0000.08021.16
5.6.100.0030.06321.00
5.6.90.0100.03720.98
5.6.80.0070.06320.49
5.6.70.0030.05320.48
5.6.60.0070.07720.30
5.6.50.0070.07320.44
5.6.40.0000.05020.33
5.6.30.0070.06720.50
5.6.20.0030.06320.38
5.6.10.0070.08020.39
5.6.00.0070.04720.30
5.5.360.0000.07720.36
5.5.350.0030.05320.42
5.5.340.0030.04320.81
5.5.330.0000.06320.84
5.5.320.0170.07320.89
5.5.310.0070.08020.84
5.5.300.0070.07020.64
5.5.290.0030.07020.84
5.5.280.0000.07320.83
5.5.270.0030.06320.88
5.5.260.0030.08320.79
5.5.250.0000.05320.70
5.5.240.0070.07020.18
5.5.230.0000.08020.20
5.5.220.0100.07320.14
5.5.210.0030.08020.27
5.5.200.0100.08020.28
5.5.190.0000.05020.22
5.5.180.0030.05019.99
5.5.160.0000.06020.24
5.5.150.0030.08020.28
5.5.140.0070.06320.18
5.5.130.0130.06020.15
5.5.120.0070.07320.23
5.5.110.0030.08020.22
5.5.100.0030.07720.16
5.5.90.0000.08020.16
5.5.80.0230.06020.13
5.5.70.0070.06319.96
5.5.60.0030.07020.07
5.5.50.0030.07020.01
5.5.40.0070.07020.03
5.5.30.0030.08020.08
5.5.20.0070.07719.94
5.5.10.0130.07020.06
5.5.00.0030.06720.08
5.4.450.0030.08019.45
5.4.440.0000.07719.35
5.4.430.0030.04319.46
5.4.420.0100.07719.35
5.4.410.0000.05019.29
5.4.400.0100.07319.12
5.4.390.0070.05319.03
5.4.380.0070.07319.06
5.4.370.0100.07319.25
5.4.360.0030.07718.80
5.4.350.0000.05719.09
5.4.340.0070.08018.84
5.4.320.0030.03718.83
5.4.310.0030.03718.81
5.4.300.0000.08318.93
5.4.290.0100.06718.90
5.4.280.0000.05319.14
5.4.270.0000.08318.89
5.4.260.0070.06719.14
5.4.250.0070.07019.22
5.4.240.0030.07019.02
5.4.230.0030.07019.14
5.4.220.0030.07718.89
5.4.210.0070.07019.09
5.4.200.0000.06319.22
5.4.190.0070.07718.94
5.4.180.0000.07719.11
5.4.170.0070.06319.04
5.4.160.0100.06319.09
5.4.150.0030.07019.07
5.4.140.0030.07016.12
5.4.130.0030.07016.25
5.4.120.0000.07316.27
5.4.110.0070.07316.21
5.4.100.0000.07016.21
5.4.90.0070.05716.38
5.4.80.0100.06316.34
5.4.70.0000.07716.24
5.4.60.0070.06716.23
5.4.50.0100.04316.39
5.4.40.0000.06716.37
5.4.30.0000.06316.21
5.4.20.0070.06316.31
5.4.10.0070.05316.41
5.4.00.0100.06315.72
5.3.290.0000.04714.54
5.3.280.0000.08014.58
5.3.270.0030.07014.43
5.3.260.0070.05314.59
5.3.250.0100.06714.47
5.3.240.0030.06714.52
5.3.230.0070.07014.46
5.3.220.0030.06314.54
5.3.210.0070.07314.56
5.3.200.0000.06014.43
5.3.190.0000.07014.40
5.3.180.0000.07714.54
5.3.170.0000.07714.54
5.3.160.0030.07714.55
5.3.150.0030.05714.39
5.3.140.0070.07314.43
5.3.130.0000.07714.42
5.3.120.0030.08014.41
5.3.110.0000.07314.55
5.3.100.0000.05714.04
5.3.90.0000.06314.00
5.3.80.0030.05014.00
5.3.70.0000.07314.01
5.3.60.0070.05713.79
5.3.50.0070.05013.92
5.3.40.0030.07013.95
5.3.30.0030.07313.78
5.3.20.0000.07713.56
5.3.10.0000.04713.52
5.3.00.0100.06313.65
5.2.170.0070.05711.07
5.2.160.0030.06011.10
5.2.150.0030.05311.07
5.2.140.0000.05711.00
5.2.130.0070.05010.99
5.2.120.0000.05311.07
5.2.110.0030.05711.07
5.2.100.0030.05311.18
5.2.90.0030.05011.10
5.2.80.0030.06011.05
5.2.70.0100.04710.90
5.2.60.0000.06711.02
5.2.50.0030.04310.97
5.2.40.0000.05310.82
5.2.30.0000.05310.80
5.2.20.0000.06010.92
5.2.10.0070.05010.94
5.2.00.0030.04710.76
5.1.60.0070.04310.76
5.1.50.0030.04010.76
5.1.40.0030.04710.76
5.1.30.0000.06010.76
5.1.20.0100.04710.76
5.1.10.0030.04310.76
5.1.00.0030.04710.76
5.0.50.0000.04010.76
5.0.40.0000.02310.76
5.0.30.0030.03010.76
5.0.20.0000.02010.76
5.0.10.0000.02010.76
5.0.00.0000.03710.76
4.4.90.0030.03310.76
4.4.80.0000.02710.76
4.4.70.0000.03710.76
4.4.60.0000.02710.76
4.4.50.0000.02710.76
4.4.40.0000.05310.76
4.4.30.0030.03310.76
4.4.20.0070.03010.76
4.4.10.0000.02710.76
4.4.00.0070.01710.76
4.3.110.0000.02010.76
4.3.100.0000.01310.76
4.3.90.0000.01710.76
4.3.80.0030.02010.76
4.3.70.0000.01710.76
4.3.60.0000.01710.76
4.3.50.0030.01310.76
4.3.40.0030.02010.76
4.3.30.0000.02010.76
4.3.20.0030.02010.76
4.3.10.0000.01710.76
4.3.00.0000.01710.76

preferences:
59.47 ms | 401 KiB | 5 Q