3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "/-([a-z]{2})-.*/"; $strings = [ "cricket-ck-game-play", "hand-ball-hb-game-play", "volley-ball-vb-game-play", "soccer-sc-game-play" ]; foreach ($strings as $str) { print_r(preg_split($pattern, $str, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY)); }

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.5.10.0120.01018.44
8.5.00.0130.01020.15
8.4.160.0080.01323.96
8.4.150.0030.00014.05
8.4.140.0100.01017.68
8.4.130.0110.00918.02
8.4.120.0090.01020.44
8.4.110.0080.00222.50
8.4.100.0160.00617.86
8.4.90.0140.00718.63
8.4.80.0040.00418.06
8.4.70.0100.00619.73
8.4.60.0110.00618.85
8.4.50.0060.00518.01
8.4.40.0130.00619.35
8.4.30.0070.01418.62
8.4.20.0030.00618.76
8.4.10.0090.00417.71
8.3.280.0140.00718.68
8.3.270.0100.01016.56
8.3.260.0110.00816.62
8.3.250.0120.00718.81
8.3.240.0110.00818.50
8.3.230.0110.00816.61
8.3.220.0140.00517.27
8.3.210.0100.01018.45
8.3.200.0110.00816.68
8.3.190.0050.01117.06
8.3.180.0060.00416.60
8.3.170.0120.00616.87
8.3.160.0190.00018.61
8.3.150.0060.00317.07
8.3.140.0070.01020.63
8.3.130.0050.01018.58
8.3.120.0070.01320.84
8.3.110.0030.00620.94
8.3.100.0000.00824.06
8.3.90.0110.00316.91
8.3.80.0050.00517.97
8.3.70.0150.00316.50
8.3.60.0130.00318.68
8.3.50.0080.01022.12
8.3.40.0110.00418.84
8.3.30.0070.00718.75
8.3.20.0050.00322.40
8.3.10.0060.00322.05
8.3.00.0050.00322.46
8.2.290.0140.00520.18
8.2.280.0100.00918.66
8.2.270.0060.01216.64
8.2.260.0140.00417.16
8.2.250.0100.01016.82
8.2.240.0060.00317.00
8.2.230.0090.00922.58
8.2.220.0170.00337.54
8.2.210.0070.01126.77
8.2.200.0090.00016.63
8.2.190.0070.00718.30
8.2.180.0080.00818.54
8.2.170.0150.00322.96
8.2.160.0100.00322.27
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00421.13
8.2.110.0000.00920.21
8.2.100.0090.00317.91
8.2.90.0000.00918.22
8.2.80.0040.00719.03
8.2.70.0080.00018.04
8.2.60.0000.00918.16
8.2.50.0060.00318.10
8.2.40.0000.00921.40
8.2.30.0060.00319.20
8.2.20.0110.00017.96
8.2.10.0050.00219.15
8.2.00.0040.00419.33
8.1.330.0130.00623.91
8.1.320.0110.00816.23
8.1.310.0090.00916.84
8.1.300.0080.00816.20
8.1.290.0040.00418.88
8.1.280.0130.00325.92
8.1.270.0040.00420.57
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0040.00422.19
8.1.230.0090.00320.96
8.1.220.0000.00817.74
8.1.210.0000.00818.79
8.1.200.0030.00717.36
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0040.00418.82
8.1.160.0080.00018.91
8.1.150.0080.00018.91
8.1.140.0030.00320.90
8.1.130.0030.00320.16
8.1.120.0000.00717.61
8.1.110.0000.00817.56
8.1.100.0080.00017.64
8.1.90.0030.00617.67
8.1.80.0040.00417.49
8.1.70.0000.00717.61
8.1.60.0040.00417.74
8.1.50.0080.00017.73
8.1.40.0060.00317.50
8.1.30.0030.00517.82
8.1.20.0000.00817.74
8.1.10.0000.00817.49
8.1.00.0040.00417.57
8.0.300.0040.00420.09
8.0.290.0040.00416.73
8.0.280.0080.00018.46
8.0.270.0000.00717.27
8.0.260.0000.00720.13
8.0.250.0040.00417.16
8.0.240.0030.00317.12
8.0.230.0040.00416.97
8.0.220.0000.00716.93
8.0.210.0000.00716.93
8.0.200.0060.00017.11
8.0.190.0060.00317.09
8.0.180.0040.00417.09
8.0.170.0060.00317.07
8.0.160.0000.00717.10
8.0.150.0030.00617.07
8.0.140.0000.00716.89
8.0.130.0000.00613.48
8.0.120.0060.00316.96
8.0.110.0000.00716.98
8.0.100.0040.00416.91
8.0.90.0000.00816.95
8.0.80.0030.01016.97
8.0.70.0060.00317.03
8.0.60.0020.00516.96
8.0.50.0050.00217.03
8.0.30.0000.01817.37
8.0.20.0130.00517.13
8.0.10.0030.00517.16
8.0.00.0110.00817.01
7.4.330.0050.00015.55
7.4.320.0030.00316.73
7.4.300.0000.00616.79
7.4.290.0050.00316.79
7.4.280.0000.00816.85
7.4.270.0030.00316.68
7.4.260.0060.00013.49
7.4.250.0000.00716.74
7.4.240.0040.00416.77
7.4.230.0000.00716.84
7.4.220.0020.00516.61
7.4.210.0110.00616.81
7.4.200.0040.00416.71
7.4.130.0100.00916.84
7.4.120.0070.01316.77
7.4.110.0130.00916.60
7.4.100.0180.00916.66
7.4.90.0130.00316.68
7.4.80.0030.01419.39
7.4.70.0100.01016.55
7.4.60.0090.00816.71
7.4.50.0100.00616.43
7.4.40.0120.01116.71
7.4.00.0040.01115.30
7.3.330.0030.00316.25
7.3.320.0050.00013.15
7.3.310.0050.00316.36
7.3.300.0030.00316.36
7.3.290.0040.00416.27
7.3.280.0110.00716.26
7.3.260.0110.00916.57
7.3.240.0090.01016.66
7.3.230.0060.01116.63
7.3.210.0190.00816.41
7.3.200.0030.01416.70
7.3.190.0100.00716.69
7.3.180.0120.00916.64
7.3.170.0030.01316.68
7.3.160.0160.00016.36
7.3.120.0090.00615.02
7.3.110.0030.01314.94
7.3.100.0040.00414.97
7.3.90.0050.00514.82
7.3.80.0070.00815.04
7.3.70.0060.01014.83
7.3.60.0070.00814.72
7.3.50.0040.00914.74
7.3.40.0030.00914.81
7.3.30.0050.00814.98
7.3.20.0020.01315.88
7.3.10.0040.01215.85
7.3.00.0070.00615.89
7.2.330.0100.00716.77
7.2.320.0060.01316.66
7.2.310.0060.01216.85
7.2.300.0100.00716.75
7.2.290.0090.00916.78
7.2.240.0060.01115.00
7.2.230.0070.01015.15
7.2.220.0030.01015.19
7.2.210.0100.00315.14
7.2.200.0040.01115.23
7.2.190.0050.00815.11
7.2.180.0090.00714.86
7.2.170.0080.00415.12
7.2.160.0050.00815.02
7.2.150.0070.00616.16
7.2.140.0130.00316.18
7.2.130.0100.00516.07
7.2.120.0060.00915.95
7.2.110.0070.00815.98
7.2.100.0100.00516.20
7.2.90.0440.01416.07
7.2.80.0080.00815.96
7.2.70.0080.00516.27
7.2.60.0100.00515.97
7.2.50.0090.00616.25
7.2.40.0060.00816.10
7.2.30.0110.00916.13
7.2.20.0090.01016.10
7.2.10.0110.00615.97
7.2.00.0100.00916.15
7.1.330.0070.00715.80
7.1.320.0080.00015.84
7.1.310.0110.00415.03
7.1.300.0090.00615.04
7.1.290.0060.01014.95
7.1.280.0100.00615.14
7.1.270.0080.00814.89
7.1.260.0120.00315.13
7.1.250.0070.00714.99

preferences:
39.54 ms | 403 KiB | 5 Q