3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "925/123 Black/Jack"; $pattern = "#(?<!\S)\d+(?:/\d+)+(?!\S)(*SKIP)(*F)|[/\\\\_\s]+#u"; $splitted = preg_split($pattern, $string); print_r($splitted);

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.4.140.0140.00717.95
8.4.130.0140.00717.69
8.4.120.0120.00822.55
8.4.110.0120.00720.49
8.4.100.0100.01018.11
8.4.90.0060.00318.01
8.4.80.0100.00917.88
8.4.70.0120.01017.86
8.4.60.0130.00920.47
8.4.50.0110.00617.94
8.4.40.0000.00918.03
8.4.30.0090.00920.36
8.4.20.0160.00018.15
8.4.10.0130.00620.34
8.3.270.0140.00616.77
8.3.260.0130.00716.91
8.3.250.0120.00818.69
8.3.240.0110.00716.83
8.3.230.0110.00816.97
8.3.220.0130.00617.23
8.3.210.0100.00918.48
8.3.200.0050.00816.98
8.3.190.0050.00416.99
8.3.180.0050.00416.75
8.3.170.0040.00416.70
8.3.160.0090.01318.58
8.3.150.0120.00417.31
8.3.140.0090.00916.96
8.3.130.0120.00318.60
8.3.120.0060.00318.97
8.3.110.0090.00020.43
8.3.100.0060.00316.89
8.3.90.0050.00318.63
8.3.80.0040.00418.55
8.3.70.0000.01418.55
8.3.60.0040.01118.68
8.3.50.0100.00724.59
8.3.40.0090.00618.88
8.3.30.0120.00319.02
8.3.20.0040.00421.71
8.3.10.0080.00021.96
8.3.00.0070.00023.65
8.2.290.0130.00720.53
8.2.280.0060.00418.57
8.2.270.0120.00616.63
8.2.260.0070.01120.57
8.2.250.0040.00416.78
8.2.240.0040.00417.13
8.2.230.0040.00420.94
8.2.220.0060.00624.06
8.2.210.0080.00026.77
8.2.200.0040.00916.88
8.2.190.0070.00716.75
8.2.180.0150.00616.50
8.2.170.0040.01118.99
8.2.160.0070.00722.96
8.2.150.0020.00524.18
8.2.140.0050.00224.66
8.2.130.0080.00026.16
8.2.120.0060.00326.16
8.2.110.0030.00622.20
8.2.100.0080.00318.03
8.2.90.0080.00017.88
8.2.80.0040.00418.73
8.2.70.0030.00617.92
8.2.60.0030.00618.03
8.2.50.0040.00419.38
8.2.40.0070.00019.34
8.2.30.0000.00719.18
8.2.20.0040.00418.01
8.2.10.0040.00419.29
8.2.00.0040.00419.24
8.1.330.0110.00818.29
8.1.320.0130.00816.51
8.1.310.0070.01118.61
8.1.300.0000.00817.86
8.1.290.0060.00318.88
8.1.280.0110.01125.92
8.1.270.0040.00422.02
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0090.00023.82
8.1.230.0090.00321.11
8.1.220.0030.00517.77
8.1.210.0000.00818.77
8.1.200.0030.00617.47
8.1.190.0040.00417.48
8.1.180.0050.00318.76
8.1.170.0040.00418.66
8.1.160.0050.00219.14
8.1.150.0070.00018.83
8.1.140.0040.00418.96
8.1.130.0070.00017.51
8.1.120.0030.00317.44
8.1.110.0080.00017.51
8.1.100.0040.00417.43
8.1.90.0070.00017.50
8.1.80.0030.00517.46
8.1.70.0050.00317.54
8.1.60.0000.00817.68
8.1.50.0030.00517.62
8.1.40.0060.00317.61
8.1.30.0000.01017.57
8.1.20.0040.00417.57
8.1.10.0030.00517.59
8.1.00.0040.00417.53
8.0.300.0000.00718.77
8.0.290.0080.00016.88
8.0.280.0000.00718.45
8.0.270.0040.00416.96
8.0.260.0040.00416.84
8.0.250.0000.00717.09
8.0.240.0030.00317.09
8.0.230.0040.00417.14
8.0.220.0030.00317.16
8.0.210.0030.00317.10
8.0.200.0040.00417.10
8.0.190.0000.00817.12
8.0.180.0030.00517.09
8.0.170.0060.00316.90
8.0.160.0040.00417.14
8.0.150.0000.00716.98
8.0.140.0040.00416.99
8.0.130.0060.00013.45
8.0.120.0040.00416.91
8.0.110.0020.00517.05
8.0.100.0000.00717.13
8.0.90.0040.00417.07
8.0.80.0090.00617.11
8.0.70.0080.00017.03
8.0.60.0040.00416.97
8.0.50.0000.00717.13
8.0.30.0130.00317.35
8.0.20.0170.00517.10
8.0.10.0000.00817.22
8.0.00.0090.00916.96
7.4.330.0020.00215.55
7.4.320.0030.00316.79
7.4.300.0000.00616.81
7.4.290.0000.00716.76
7.4.280.0040.00416.79
7.4.270.0070.00016.77
7.4.260.0030.00313.48
7.4.250.0050.00216.68
7.4.240.0020.00516.65
7.4.230.0030.00316.63
7.4.220.0040.00316.70
7.4.210.0070.00816.80
7.4.200.0040.00416.60
7.4.130.0050.01416.69
7.4.120.0120.01216.77
7.4.110.0030.01316.67
7.4.100.0140.00616.53
7.4.90.0060.01216.65
7.4.80.0120.00619.39
7.4.70.0110.00916.65
7.4.60.0030.01416.77
7.4.50.0060.01016.55
7.4.40.0120.00916.59
7.4.30.0070.01716.50
7.4.20.0030.01216.47
7.4.10.0080.00816.43
7.4.00.0140.00416.75
7.3.330.0040.00416.40
7.3.320.0000.00613.09
7.3.310.0040.00416.43
7.3.300.0030.00316.26
7.3.290.0070.00016.37
7.3.280.0100.00716.25
7.3.260.0070.01016.43
7.3.240.0100.00716.55
7.3.230.0170.00716.38
7.3.210.0070.01016.48
7.3.200.0130.00316.64
7.3.190.0030.01316.35
7.3.180.0060.01316.41
7.3.170.0110.01116.55
7.3.160.0110.00916.71
7.3.150.0130.00316.38
7.3.140.0060.00916.40
7.3.130.0070.01116.23
7.3.120.0120.00616.59
7.3.110.0150.00316.55
7.3.100.0130.00316.48
7.3.90.0120.00316.47
7.3.80.0030.01316.54
7.3.70.0040.01216.24
7.3.60.0040.01116.25
7.3.50.0070.01016.23
7.3.40.0090.00616.38
7.3.30.0140.00316.27
7.3.20.0030.01516.25
7.3.10.0100.01016.58
7.3.00.0090.01216.39
7.2.330.0130.01316.60
7.2.320.0090.00916.61
7.2.310.0060.01316.73
7.2.300.0120.00616.60
7.2.290.0060.01816.70
7.2.280.0110.00616.79
7.2.270.0070.01016.55
7.2.260.0180.00016.45
7.2.250.0070.01016.61
7.2.240.0170.00716.75
7.2.230.0070.01016.54
7.2.220.0090.00616.79
7.2.210.0100.00716.80
7.2.200.0140.00416.66
7.2.190.0100.00616.71
7.2.180.0070.01016.63
7.2.170.0070.01116.54
7.2.160.0030.01416.53
7.2.150.0160.00316.73
7.2.140.0070.01116.72
7.2.130.0090.00916.66
7.2.120.0070.01016.60
7.2.110.0030.01316.70
7.2.100.0120.00616.66
7.2.90.0030.01316.69
7.2.80.0030.01416.52
7.2.70.0110.00616.62
7.2.60.0120.00616.80
7.2.50.0030.01216.83
7.2.40.0070.01016.55
7.2.30.0040.01516.85
7.2.20.0100.00716.60
7.2.10.0070.01016.72
7.2.00.0130.01316.71

preferences:
31.85 ms | 403 KiB | 5 Q