3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "cricket-ck-game-play", "hand-ball-hb-game-play", "volley-ball-vb-game-play", "soccer-sc-game-play" ]; $pattern = "/\b(\w{3,}(?:-(?:\w{3,}))*)-(\w{2})-game-play\b/"; foreach ($strings as $str) { preg_match($pattern, $str, $matches); print_r($matches); }

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.20.0100.01018.73
8.4.10.0030.00719.56
8.3.150.0030.01617.11
8.3.140.0080.00416.75
8.3.130.0000.00818.55
8.3.120.0030.00620.80
8.3.110.0040.00420.94
8.3.100.0040.01118.49
8.3.90.0080.00018.57
8.3.80.0000.00918.56
8.3.70.0100.01018.68
8.3.60.0090.00618.55
8.3.50.0120.00722.06
8.3.40.0120.00318.66
8.3.30.0090.00618.67
8.3.20.0040.00422.26
8.3.10.0000.00922.09
8.3.00.0050.00322.64
8.2.270.0090.00918.90
8.2.260.0060.00916.85
8.2.250.0060.01218.80
8.2.240.0000.00817.24
8.2.230.0160.00022.58
8.2.220.0090.00024.06
8.2.210.0040.01526.77
8.2.200.0040.00418.29
8.2.190.0090.00616.88
8.2.180.0060.01318.41
8.2.170.0150.00022.96
8.2.160.0030.01022.38
8.2.150.0070.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0040.00420.50
8.2.100.0030.00918.03
8.2.90.0030.00520.54
8.2.80.0000.00817.97
8.2.70.0030.00518.05
8.2.60.0080.00018.22
8.2.50.0060.00318.10
8.2.40.0080.00019.34
8.2.30.0050.00219.34
8.2.20.0000.00917.97
8.2.10.0030.00519.20
8.2.00.0000.00719.28
8.1.310.0070.00716.66
8.1.300.0030.00618.10
8.1.290.0060.00618.88
8.1.280.0090.00925.92
8.1.270.0080.00020.63
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.86
8.1.230.0070.00420.84
8.1.220.0050.00317.76
8.1.210.0090.00019.03
8.1.200.0080.00017.47
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0060.00318.70
8.1.160.0000.00818.95
8.1.150.0070.00018.80
8.1.140.0040.00420.94
8.1.130.0040.00417.48
8.1.120.0040.00417.69
8.1.110.0050.00217.66
8.1.100.0080.00017.60
8.1.90.0030.00517.62
8.1.80.0050.00317.52
8.1.70.0000.00717.57
8.1.60.0060.00317.77
8.1.50.0050.00517.73
8.1.40.0060.00317.67
8.1.30.0050.00317.88
8.1.20.0050.00317.64
8.1.10.0000.00817.62
8.1.00.0000.01017.46
8.0.300.0090.00019.98
8.0.290.0040.00416.88
8.0.280.0050.00218.48
8.0.270.0030.00317.20
8.0.260.0050.00217.04
8.0.250.0030.00517.12
8.0.240.0030.00317.04
8.0.230.0000.00717.11
8.0.220.0030.00317.06
8.0.210.0000.00817.01
8.0.200.0060.00016.98
8.0.190.0000.00817.13
8.0.180.0080.00017.04
8.0.170.0040.00417.05
8.0.160.0000.00716.96
8.0.150.0000.00716.91
8.0.140.0070.00017.02
8.0.130.0000.00613.41
8.0.120.0000.00816.93
8.0.110.0000.00716.88
8.0.100.0070.00017.08
8.0.90.0040.00417.09
8.0.80.0040.01116.99
8.0.70.0050.00217.08
8.0.60.0000.00817.09
8.0.50.0040.00416.87
8.0.30.0100.01017.01
8.0.20.0130.00717.30
8.0.10.0040.00416.99
8.0.00.0130.00616.90
7.4.330.0050.00015.55
7.4.320.0060.00016.68
7.4.300.0000.00616.64
7.4.290.0070.00016.79
7.4.280.0000.00816.57
7.4.270.0000.00716.87
7.4.260.0000.00513.51
7.4.250.0040.00416.80
7.4.240.0020.00616.80
7.4.230.0030.00316.61
7.4.220.0030.00316.87
7.4.210.0100.00516.79
7.4.200.0040.00416.52
7.4.130.0090.00916.79
7.4.120.0130.00716.59
7.4.110.0130.01016.55
7.4.100.0080.00816.70
7.4.90.0090.01216.56
7.4.80.0060.01119.39
7.4.70.0140.00316.57
7.4.60.0140.00716.69
7.4.50.0060.00616.67
7.4.40.0040.01516.64
7.4.10.0090.00915.15
7.4.00.0040.01015.13
7.3.330.0040.00716.40
7.3.320.0030.00313.14
7.3.310.0000.00816.49
7.3.300.0000.00716.44
7.3.290.0030.00316.48
7.3.280.0090.00916.37
7.3.260.0140.00916.51
7.3.240.0080.01216.45
7.3.230.0030.01316.70
7.3.210.0190.00616.69
7.3.200.0130.00416.40
7.3.190.0130.00716.74
7.3.180.0160.00416.45
7.3.170.0080.00816.43
7.3.160.0130.00316.45
7.3.130.0070.01014.89
7.3.120.0070.00914.96
7.3.110.0120.00515.22
7.3.100.0100.00714.90
7.3.90.0060.00914.83
7.3.80.0070.00714.99
7.3.70.0060.00614.84
7.3.60.0050.00614.98
7.3.50.0090.00714.96
7.3.40.0070.00714.88
7.3.30.0050.00714.86
7.3.20.0080.00716.26
7.3.10.0040.01016.04
7.3.00.0150.00316.24
7.2.330.0140.00316.72
7.2.320.0200.00316.65
7.2.310.0100.00716.66
7.2.300.0140.00716.61
7.2.290.0080.00816.71
7.2.260.0040.01414.93
7.2.250.0080.01115.12
7.2.240.0080.00815.07
7.2.230.0100.00515.23
7.2.220.0050.00815.02
7.2.210.0030.01015.06
7.2.200.0060.00815.20
7.2.190.0040.01014.97
7.2.180.0080.00515.02
7.2.170.0060.00715.06
7.2.160.0080.00615.15
7.2.150.0090.01016.40
7.2.140.0090.00916.46
7.2.130.0090.00916.40
7.2.120.0100.01016.41
7.2.110.0120.00816.48
7.2.100.0100.00816.44
7.2.90.0050.01016.32
7.2.80.0070.00816.37
7.2.70.0110.00716.31
7.2.60.0090.00816.37
7.2.50.0080.00716.47
7.2.40.0120.00316.47
7.2.30.0050.01316.29
7.2.20.0090.00916.42
7.2.10.0070.00916.50
7.2.00.0050.01016.34
7.1.330.0070.00915.90
7.1.320.0070.00416.05
7.1.310.0110.00515.36
7.1.300.0070.00715.31
7.1.290.0080.00715.34
7.1.280.0090.00415.38
7.1.270.0050.01015.18
7.1.260.0080.00515.06
7.1.250.0360.00615.29
7.1.240.0020.00815.94
7.1.230.0030.01315.95
7.1.220.0040.01215.74
7.1.210.0040.00616.07
7.1.200.0050.00515.72
7.1.190.0030.01016.02
7.1.180.0030.00815.76
7.1.170.0070.00715.91
7.1.160.0080.00615.82
7.1.150.0040.00915.88
7.1.140.0060.00616.01
7.1.130.0080.00316.09
7.1.120.0030.00815.99
7.1.110.0060.00615.83
7.1.100.0070.00615.97
7.1.90.0030.00915.98
7.1.80.0080.00715.91
7.1.70.0020.00816.09
7.1.60.0020.00816.12
7.1.50.0050.01315.88
7.1.40.0080.00615.80
7.1.30.0040.00915.97
7.1.20.0030.01015.87
7.1.10.0040.01015.89
7.1.00.0070.00315.93

preferences:
27.62 ms | 403 KiB | 5 Q