3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* WT-Pine-Blush-0-short-rentwithtryon-Alias */ $_itemSku = "WT-Pine-Blush-0-short-rentwithtryon-Alias"; preg_match('/([^-]+\-){6}([^-]+)$/', $_itemSku, $matches); $result = (isset($matches[2])) ? $matches[2] : false; if ($result) { preg_match('/([a-z][A-Z])/', $result, $alias); $arr = explode('', $alias); //TODO: need to insert a space between the two items in the alias array echo $alias; } else { echo "nope"; }

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.0000.01718.43
8.3.60.0100.01318.33
8.3.50.0170.00722.08
8.3.40.0070.01118.82
8.3.30.0070.00719.23
8.3.20.0040.00420.38
8.3.10.0040.00421.90
8.3.00.0080.00022.39
8.2.180.0110.00418.53
8.2.170.0120.00322.96
8.2.160.0030.01022.16
8.2.150.0050.00325.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0060.00319.60
8.2.110.0070.00321.06
8.2.100.0060.00617.91
8.2.90.0040.00419.10
8.2.80.0050.00317.97
8.2.70.0060.00317.88
8.2.60.0040.00418.03
8.2.50.0090.00018.07
8.2.40.0030.00520.07
8.2.30.0040.00418.16
8.2.20.0000.00817.82
8.2.10.0000.00717.96
8.2.00.0080.00018.03
8.1.280.0090.00625.92
8.1.270.0040.00420.38
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00023.88
8.1.230.0110.00019.09
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0080.00617.24
8.1.190.0030.00517.48
8.1.180.0000.00818.10
8.1.170.0040.00418.58
8.1.160.0040.00421.98
8.1.150.0040.00418.96
8.1.140.0040.00417.45
8.1.130.0030.00317.70
8.1.120.0030.00517.44
8.1.110.0040.00417.45
8.1.100.0000.00817.60
8.1.90.0000.00717.58
8.1.80.0000.00817.55
8.1.70.0000.00817.45
8.1.60.0000.00817.69
8.1.50.0040.00417.65
8.1.40.0000.00817.71
8.1.30.0000.00917.76
8.1.20.0040.00417.74
8.1.10.0080.00017.71
8.1.00.0000.00717.66
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.40
8.0.270.0070.00017.23
8.0.260.0030.00317.14
8.0.250.0040.00417.00
8.0.240.0000.00617.14
8.0.230.0060.00317.14
8.0.220.0030.00317.05
8.0.210.0040.00417.04
8.0.200.0060.00317.07
8.0.190.0040.00417.12
8.0.180.0000.00717.11
8.0.170.0000.00817.07
8.0.160.0040.00416.84
8.0.150.0030.00316.83
8.0.140.0000.00717.04
8.0.130.0030.00513.41
8.0.120.0000.00817.02
8.0.110.0000.00816.93
8.0.100.0040.00416.92
8.0.90.0030.00517.00
8.0.80.0100.00616.99
8.0.70.0000.00817.02
8.0.60.0000.00816.93
8.0.50.0000.00716.86
8.0.30.0110.00717.20
8.0.20.0090.01017.40
8.0.10.0000.00816.97
8.0.00.0080.01016.82
7.4.330.0050.00015.04
7.4.320.0030.00316.79
7.4.300.0030.00316.72
7.4.290.0000.00716.64
7.4.280.0050.00216.63
7.4.270.0000.00716.66
7.4.260.0030.00516.70
7.4.250.0040.00416.61
7.4.240.0020.00516.68
7.4.230.0000.00716.49
7.4.220.0080.01116.61
7.4.210.0060.00916.77
7.4.200.0080.00016.64
7.4.160.0090.00616.54
7.4.150.0080.00817.40
7.4.140.0160.01017.86
7.4.130.0050.01416.73
7.4.120.0080.01016.66
7.4.110.0120.00616.63
7.4.100.0100.01416.78
7.4.90.0090.00916.89
7.4.80.0120.00619.39
7.4.70.0180.00016.71
7.4.60.0080.00816.75
7.4.50.0020.00216.37
7.4.40.0060.01316.57
7.4.30.0100.00716.55
7.4.00.0110.00415.19
7.3.330.0030.00313.36
7.3.320.0000.00613.36
7.3.310.0000.00816.41
7.3.300.0000.00716.47
7.3.290.0080.00816.48
7.3.280.0080.01116.50
7.3.270.0090.00917.40
7.3.260.0100.01016.84
7.3.250.0080.01016.66
7.3.240.0110.00916.68
7.3.230.0130.00716.46
7.3.210.0090.01616.47
7.3.200.0130.00819.39
7.3.190.0130.00316.63
7.3.180.0160.00316.71
7.3.170.0130.00916.66
7.3.160.0100.00716.81
7.3.10.0000.01316.70
7.3.00.0090.00316.95
7.2.330.0090.00916.83
7.2.320.0100.01016.75
7.2.310.0090.00916.88
7.2.300.0030.01716.83
7.2.290.0030.01816.95
7.2.130.0040.01117.25
7.2.120.0070.00717.21
7.2.110.0000.01116.99
7.2.100.0100.00317.18
7.2.90.0060.00916.98
7.2.80.0040.01516.90
7.2.70.0080.00416.97
7.2.60.0070.01117.19
7.2.50.0060.00316.70
7.2.40.0040.00716.80
7.2.30.0090.00616.99
7.2.20.0060.00617.06
7.2.10.0130.00317.21
7.2.00.0020.01218.02
7.1.250.0000.01015.73
7.1.100.0000.01118.44
7.1.70.0070.00317.49
7.1.60.0070.01719.59
7.1.50.0070.01416.82
7.1.00.0000.08022.50
7.0.200.0040.00417.05
7.0.60.0000.07721.80
7.0.50.0030.04317.92
7.0.40.0100.08319.99
7.0.30.0500.05320.11
7.0.20.0130.04720.30
7.0.10.0170.04020.18
7.0.00.0100.04320.18
5.6.280.0000.07721.10
5.6.210.0170.07720.48
5.6.200.0130.07018.19
5.6.190.0130.04020.77
5.6.180.4230.04020.32
5.6.170.0300.04320.33
5.6.160.0070.07020.54
5.6.150.0030.04318.22
5.6.140.0100.07018.15
5.6.130.0030.07718.11
5.6.120.0100.08320.98
5.6.110.0100.08321.01
5.6.100.0070.08321.08
5.6.90.0070.06321.07
5.6.80.0070.08320.28
5.5.350.3130.03020.38
5.5.340.0030.04318.01
5.5.330.0030.08320.20
5.5.320.0270.05020.50
5.5.310.0300.07320.17
5.5.300.0030.08717.98
5.5.290.0000.04318.00
5.5.280.0230.07320.87
5.5.270.0000.09020.76
5.5.260.0130.07720.96
5.5.250.0100.07320.68
5.5.240.0100.04320.28
5.4.450.0770.05719.10
5.4.440.0430.05319.40
5.4.430.0600.06019.31
5.4.420.0800.05019.15
5.4.410.0770.05319.14
5.4.400.0470.06018.93
5.4.390.0630.05319.02
5.4.380.0830.05019.15
5.4.370.0870.05318.99
5.4.360.0670.05719.09
5.4.350.0670.05719.28
5.4.340.0600.06019.15
5.4.320.0800.06319.20
5.4.310.0830.05019.05
5.4.300.0670.05019.04
5.4.290.0730.05319.14
5.4.280.0630.07719.15
5.4.270.0630.05319.09
5.4.260.0530.05019.09
5.4.250.0770.05719.08
5.4.240.0800.05319.21
5.4.230.0630.05019.14
5.4.220.0630.06319.13
5.4.210.0770.05018.88
5.4.200.0730.04716.88
5.4.190.0770.07019.22
5.4.180.0670.05319.00
5.4.170.0700.05718.92
5.4.160.0770.04719.11
5.4.150.0730.06318.99
5.4.140.0930.05316.47
5.4.130.0770.05716.57
5.4.120.0700.05316.56
5.4.110.0670.05316.61
5.4.100.0730.04716.23
5.4.90.0700.04716.45
5.4.80.0670.05316.54
5.4.70.0830.05316.43
5.4.60.0770.05316.54
5.4.50.0630.05716.39
5.4.40.0670.05716.51
5.4.30.0870.05016.35
5.4.20.0700.06016.47
5.4.10.0730.05016.15
5.4.00.0870.04715.70
5.3.290.0830.05014.60
5.3.280.0800.05014.63
5.3.270.1030.04314.56
5.3.260.0830.05314.61
5.3.250.0970.04014.51
5.3.240.0770.07014.45
5.3.230.0770.05714.54
5.3.220.0930.05014.66
5.3.210.0730.05014.61
5.3.200.0870.04714.64
5.3.190.0970.04714.66
5.3.180.0600.06314.47
5.3.170.0670.04714.65
5.3.160.0670.05314.56
5.3.150.0900.04714.45
5.3.140.1070.04314.62
5.3.130.0930.04314.51
5.3.120.0600.05714.61
5.3.110.0670.07714.48
5.3.100.0870.05013.96
5.3.90.0830.06014.10
5.3.80.0700.06314.02
5.3.70.0530.05013.91
5.3.60.0630.04314.08
5.3.50.0600.04713.95
5.3.40.0800.04713.86
5.3.30.0730.05014.00
5.3.20.0800.04313.77
5.3.10.0730.06013.72
5.3.00.0870.03713.71
5.2.170.0600.04011.14
5.2.160.0600.04011.12
5.2.150.0600.04311.21
5.2.140.0570.04711.04
5.2.130.0470.05311.24
5.2.120.0670.03011.24
5.2.110.0570.04311.02
5.2.100.0730.03011.00
5.2.90.0630.04711.07
5.2.80.0600.05311.27
5.2.70.0430.04311.25
5.2.60.0600.04011.16
5.2.50.0570.04311.09
5.2.40.0670.04010.98
5.2.30.0500.05011.10
5.2.20.0570.03311.12
5.2.10.0570.03310.88
5.2.00.0630.03310.66
5.1.60.0570.0409.85
5.1.50.0530.02710.00
5.1.40.0570.0479.87
5.1.30.0530.03010.19
5.1.20.0470.03710.33
5.1.10.0500.03010.00
5.1.00.0430.0379.91
5.0.50.0170.0378.47
5.0.40.0200.0308.32
5.0.30.0200.0478.10
5.0.20.0300.0238.35
5.0.10.0200.0338.08
5.0.00.0270.0408.03
4.4.90.0200.0235.86
4.4.80.0200.0235.89
4.4.70.0230.0235.92
4.4.60.0230.0205.91
4.4.50.0230.0235.82
4.4.40.0200.0375.78
4.4.30.0300.0235.74
4.4.20.0200.0235.90
4.4.10.0200.0205.91
4.4.00.0200.0375.85
4.3.110.0170.0235.73
4.3.100.0170.0235.70
4.3.90.0200.0305.68
4.3.80.0130.0375.75
4.3.70.0200.0205.81
4.3.60.0170.0205.65
4.3.50.0230.0175.75
4.3.40.0230.0275.74
4.3.30.0100.0204.53
4.3.20.0070.0234.52
4.3.10.0100.0204.51
4.3.00.0100.0237.28

preferences:
57 ms | 401 KiB | 5 Q