3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '[a-z\d+#.-]+'; // Borrowed from @Hamza. $tags =<<<TAGS gggd hfhfghg;hfhdfh fgjfgjgf;hfhdfh;hfhdfh fgjgfj;hfhdfh;hfhdfh;hfhdfh hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh TAGS; $prevChar = ';'; $count = 0; $len = strlen($tags); $allowedChars = ';abcdefghijklmnopqrstuvwxyz0123456789#.-'; for ($i = 0; $i < $len; $i++) { $current = $tags[$i]; if ($current === ';') { $count++; continue; } if ($current === $prevChar) { $count = 0; break; } if (strpos($allowedChars, $current) === false) { $count = 0; break; } $prevChar = $current; } var_dump($count); if (preg_match('/'.$pattern.'/', $tags)) { var_dump(substr_count($tags, ';')); }

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.0150.00318.43
8.3.50.0170.00521.27
8.3.40.0090.00619.09
8.3.30.0040.01120.39
8.3.20.0040.00420.34
8.3.10.0080.00021.94
8.3.00.0030.01322.52
8.2.180.0120.00318.32
8.2.170.0070.00722.96
8.2.160.0030.01020.23
8.2.150.0000.00824.18
8.2.140.0130.00624.66
8.2.130.0070.00726.16
8.2.120.0040.00419.66
8.2.110.0030.00619.27
8.2.100.0090.00317.99
8.2.90.0040.00417.75
8.2.80.0000.00818.85
8.2.70.0030.00517.93
8.2.60.0030.00618.04
8.2.50.0030.00518.10
8.2.40.0040.00420.45
8.2.30.0100.00018.13
8.2.20.0050.00217.83
8.2.10.0040.00417.91
8.2.00.0070.00319.61
8.1.280.0150.00625.92
8.1.270.0030.00524.66
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00622.13
8.1.230.0080.00420.84
8.1.220.0030.00618.68
8.1.210.0080.00018.77
8.1.200.0000.00817.47
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0040.00422.13
8.1.150.0000.00918.84
8.1.140.0000.00817.60
8.1.130.0030.00317.88
8.1.120.0080.00017.52
8.1.110.0040.00417.59
8.1.100.0020.00517.64
8.1.90.0040.00417.63
8.1.80.0000.00717.68
8.1.70.0030.00317.57
8.1.60.0030.00617.64
8.1.50.0000.00717.60
8.1.40.0040.00417.57
8.1.30.0030.00617.69
8.1.20.0000.00817.75
8.1.10.0040.00417.57
8.1.00.0030.00617.62
8.0.300.0000.00819.73
8.0.290.0090.00017.00
8.0.280.0060.00318.46
8.0.270.0090.00017.18
8.0.260.0000.00616.94
8.0.250.0000.00717.18
8.0.240.0040.00417.13
8.0.230.0040.00417.13
8.0.220.0000.00717.11
8.0.210.0030.00317.08
8.0.200.0050.00217.16
8.0.190.0040.00817.15
8.0.180.0000.00717.05
8.0.170.0040.00417.15
8.0.160.0040.00417.21
8.0.150.0040.00417.08
8.0.140.0000.00717.07
8.0.130.0050.00013.49
8.0.120.0040.00416.94
8.0.110.0040.00417.09
8.0.100.0050.00317.07
8.0.90.0050.00216.95
8.0.80.0130.00716.98
8.0.70.0040.00417.09
8.0.60.0000.00816.91
8.0.50.0050.00316.88
8.0.30.0100.01217.21
8.0.20.0120.00617.40
8.0.10.0000.00717.02
8.0.00.0100.00916.90
7.4.330.0060.00015.00
7.4.320.0050.00216.67
7.4.300.0000.00616.72
7.4.290.0030.00316.65
7.4.280.0040.00416.80
7.4.270.0070.00016.72
7.4.260.0030.00316.66
7.4.250.0000.00816.60
7.4.240.0060.00216.84
7.4.230.0030.00516.63
7.4.220.0110.00716.82
7.4.210.0090.00616.81
7.4.200.0040.00416.82
7.4.190.0000.00916.64
7.4.160.0090.00916.68
7.4.150.0070.01017.40
7.4.140.0090.01017.86
7.4.130.0130.00416.74
7.4.120.0080.01116.79
7.4.110.0100.00716.67
7.4.100.0180.00016.82
7.4.90.0110.00616.85
7.4.80.0180.00019.39
7.4.70.0060.00916.72
7.4.60.0140.00316.86
7.4.50.0030.00616.50
7.4.40.0070.00822.77
7.4.30.0070.01116.54
7.4.10.0120.00615.15
7.4.00.0090.00914.97
7.3.330.0050.00013.27
7.3.320.0030.00313.48
7.3.310.0040.00416.40
7.3.300.0030.00316.37
7.3.290.0130.00016.45
7.3.280.0060.01116.51
7.3.270.0100.00717.40
7.3.260.0090.00916.58
7.3.250.0080.01316.71
7.3.240.0090.00616.58
7.3.230.0100.00716.59
7.3.210.0100.00716.50
7.3.200.0130.00319.39
7.3.190.0090.01416.70
7.3.180.0000.01716.47
7.3.170.0080.01116.67
7.3.160.0090.00616.59
7.3.130.0060.00915.08
7.3.120.0050.01215.15
7.3.110.0050.01115.10
7.3.100.0050.00915.05
7.3.90.0020.01015.18
7.3.80.0050.00715.16
7.3.70.0060.00814.89
7.3.60.0080.00714.89
7.3.50.0060.00615.12
7.3.40.0060.00815.04
7.3.30.0060.00614.92
7.3.20.0060.00516.90
7.3.10.0070.00816.81
7.3.00.0040.00916.66
7.2.330.0140.00616.92
7.2.320.0090.01516.82
7.2.310.0030.01416.72
7.2.300.0070.01016.75
7.2.290.0070.01016.74
7.2.260.0070.01115.27
7.2.250.0130.00315.32
7.2.240.0100.00515.23
7.2.230.0120.00715.19
7.2.220.0060.00915.28
7.2.210.0060.00815.30
7.2.200.0110.00415.24
7.2.190.0110.00615.19
7.2.180.0070.00715.35
7.2.170.0070.00815.27
7.2.160.0060.00515.40
7.2.150.0070.00717.11
7.2.140.0050.01017.07
7.2.130.0060.00617.05
7.2.120.0060.00917.18
7.2.110.0080.00317.18
7.2.100.0060.00817.05
7.2.90.0070.00917.21
7.2.80.0070.00717.17
7.2.70.0050.00817.26
7.2.60.0070.00916.95
7.2.50.0070.00916.98
7.2.40.0020.01216.99
7.2.30.0080.00617.02
7.2.20.0060.00917.00
7.2.10.0030.00816.90
7.2.00.0090.00517.12
7.1.330.0050.01115.95
7.1.320.0030.01215.97
7.1.310.0080.00615.98
7.1.300.0030.00815.98
7.1.290.0060.00815.94
7.1.280.0070.00515.88
7.1.270.0080.00315.87
7.1.260.0020.00915.81
7.1.250.0050.00915.89
7.1.240.0070.00315.96
7.1.230.0000.01215.93
7.1.220.0110.00315.91
7.1.210.0070.00716.05
7.1.200.0040.00916.05
7.1.190.0060.00616.03
7.1.180.0030.01015.91
7.1.170.0000.01416.08
7.1.160.0090.00616.21
7.1.150.0030.00915.74
7.1.140.0030.01015.93
7.1.130.0000.01115.98
7.1.120.0100.00315.82
7.1.110.0070.00315.93
7.1.100.0070.00716.18
7.1.90.0070.00716.04
7.1.80.0110.00016.19
7.1.70.0030.00716.73
7.1.60.0150.00517.51
7.1.50.0090.01116.55
7.1.40.0070.00715.77
7.1.30.0040.00815.94
7.1.20.0110.00415.69
7.1.10.0100.00715.82
7.1.00.0050.01919.17
7.0.330.0000.01215.80
7.0.320.0090.00015.67
7.0.310.0080.00615.71
7.0.300.0130.00015.46
7.0.290.0060.00615.51
7.0.280.0060.00315.51
7.0.270.0100.00315.39
7.0.260.0050.00315.39
7.0.250.0100.00715.68
7.0.240.0070.00715.73
7.0.230.0040.00815.75
7.0.220.0040.00415.41
7.0.210.0090.00615.77
7.0.200.0450.00315.25
7.0.190.0070.00415.69
7.0.180.0040.00715.57
7.0.170.0050.00515.69
7.0.160.0000.01015.57
7.0.150.0030.00615.68
7.0.140.0020.04318.73
7.0.130.0040.00815.62
7.0.120.0060.00615.69
7.0.110.0030.04617.71
7.0.100.0070.04317.78
7.0.90.0050.04217.81
7.0.80.0060.04617.67
7.0.70.0050.02417.65
7.0.60.0070.02317.77
7.0.50.0070.02017.91
7.0.40.0110.01816.80
7.0.30.0090.04016.85
7.0.20.0050.02116.80
7.0.10.0040.02716.84
7.0.00.0100.02016.86
5.6.400.0000.00814.55
5.6.390.0090.00314.74
5.6.380.0080.00314.73
5.6.370.0070.01014.16
5.6.360.0040.00814.63
5.6.350.0040.01114.44
5.6.340.0050.00514.39
5.6.330.0000.01614.58
5.6.320.0030.01314.09
5.6.310.0100.00314.18
5.6.300.0100.00314.44
5.6.290.0110.00314.91
5.6.280.0030.04017.77
5.6.270.0040.00414.29
5.6.260.0140.03717.55
5.6.250.0090.04417.66
5.6.240.0080.03717.54
5.6.230.0020.04417.47
5.6.220.0100.02317.49
5.6.210.0050.02117.62
5.6.200.0050.02917.57
5.6.190.0030.02717.42
5.6.180.0050.02817.63
5.6.170.0020.02717.37
5.6.160.0070.02517.40
5.6.150.0060.03617.50
5.6.140.0100.02217.34
5.6.130.0030.02517.53
5.6.120.0070.02317.63
5.6.110.0060.02117.52
5.6.100.0060.02517.41
5.6.90.0110.02617.49
5.6.80.0030.02517.03
5.6.70.0040.02217.17
5.6.60.0050.02317.08
5.6.50.0030.02516.97
5.6.40.0050.02217.02
5.6.30.0030.02817.27
5.6.20.0030.02517.09
5.6.10.0070.02217.14
5.6.00.0050.02517.12
5.5.380.0110.03817.53
5.5.370.0050.02317.54
5.5.360.0070.02517.30
5.5.350.0100.02617.52
5.5.340.0050.02517.58
5.5.330.0060.02517.33
5.5.320.0090.02517.75
5.5.310.0080.02117.55
5.5.300.0050.02117.51
5.5.290.0090.02017.73
5.5.280.0020.02717.73
5.5.270.0070.02317.35
5.5.260.0060.02617.57
5.5.250.0040.02317.41
5.5.240.0030.02317.27
5.5.230.0050.04717.37
5.5.220.0030.02617.17
5.5.210.0030.02717.28
5.5.200.0020.02017.27
5.5.190.0030.02817.24
5.5.180.0040.02517.36
5.5.170.0060.00614.50
5.5.160.0070.02417.24
5.5.150.0030.02317.14
5.5.140.0110.02317.25
5.5.130.0120.02717.42
5.5.120.0050.03717.27
5.5.110.0020.04617.25
5.5.100.0120.01717.35
5.5.90.0080.04117.27
5.5.80.0060.03817.18
5.5.70.0070.04217.36
5.5.60.0070.03717.22
5.5.50.0000.02817.12
5.5.40.0070.04417.31
5.5.30.0070.04217.04
5.5.20.0050.04517.01
5.5.10.0060.02817.31
5.5.00.0070.04217.17
5.4.450.0050.02016.69
5.4.440.0070.02016.75
5.4.430.0020.02516.62
5.4.420.0030.02516.62
5.4.410.0070.02216.63
5.4.400.0060.02316.50
5.4.390.0030.02216.50
5.4.380.0020.02216.51
5.4.370.0030.02016.54
5.4.360.0040.02116.42
5.4.350.0020.02316.57
5.4.340.0050.02116.44
5.4.330.0030.00513.89
5.4.320.0020.02316.41
5.4.310.0000.02416.49
5.4.300.0050.02716.53
5.4.290.0120.03516.50
5.4.280.0050.04016.58
5.4.270.0070.02716.49
5.4.260.0020.03516.53
5.4.250.0120.03116.48
5.4.240.0100.01816.50
5.4.230.0030.03916.46
5.4.220.0040.04016.46
5.4.210.0050.03916.42
5.4.200.0030.04016.45
5.4.190.0130.03616.49
5.4.180.0050.03716.46
5.4.170.0050.03716.41
5.4.160.0030.04116.56
5.4.150.0050.04316.44
5.4.140.0050.04015.01
5.4.130.0030.03015.10
5.4.120.0080.01815.03
5.4.110.0050.04015.14
5.4.100.0080.02615.15
5.4.90.0060.03615.19
5.4.80.0100.02315.03
5.4.70.0070.03215.13
5.4.60.0110.03015.08
5.4.50.0080.04415.18
5.4.40.0050.04215.10
5.4.30.0020.03015.12
5.4.20.0050.03915.13
5.4.10.0020.04315.13
5.4.00.0070.03614.82
5.3.290.0060.02114.22
5.3.280.0130.03814.25
5.3.270.0080.03514.28
5.3.260.0020.03514.19
5.3.250.0100.03614.19
5.3.240.0070.03514.21
5.3.230.0060.04314.20
5.3.220.0070.03714.17
5.3.210.0040.04414.16
5.3.200.0070.02214.18
5.3.190.0070.03214.17
5.3.180.0050.04014.17
5.3.170.0050.03814.16
5.3.160.0030.04314.23
5.3.150.0080.03514.20
5.3.140.0050.04014.15
5.3.130.0070.03714.17
5.3.120.0020.04614.19
5.3.110.0080.03014.19
5.3.100.0050.04214.00
5.3.90.0080.03813.93
5.3.80.0040.02813.92
5.3.70.0020.02213.85
5.3.60.0050.03713.92
5.3.50.0100.03013.96
5.3.40.0050.03713.88
5.3.30.0040.03713.84
5.3.20.0080.02313.76
5.3.10.0050.03813.70
5.3.00.0070.03813.78
5.2.170.0070.05311.46
5.2.160.0000.06311.46
5.2.150.0000.06311.46
5.2.140.0100.05011.46
5.2.130.0130.04711.46
5.2.120.0170.04711.46
5.2.110.0030.06311.46
5.2.100.0030.06011.46
5.2.90.0000.06011.46
5.2.80.0030.05011.46
5.2.70.0030.06311.46
5.2.60.0000.04711.46
5.2.50.0070.04011.46
5.2.40.0100.05311.46
5.2.30.0070.06011.46
5.2.20.0130.05311.46
5.2.10.0030.06311.46
5.2.00.0100.05311.46
5.1.60.0130.04711.46
5.1.50.0030.05011.46
5.1.40.0070.05011.46
5.1.30.0030.05311.46
5.1.20.0000.05311.46
5.1.10.0030.06011.46
5.1.00.0100.05011.46
5.0.50.0070.04311.46
5.0.40.0030.03311.46
5.0.30.0000.05711.46
5.0.20.0030.03711.46
5.0.10.0030.04311.46
5.0.00.0100.05311.46
4.4.90.0070.01311.46
4.4.80.0000.03011.46
4.4.70.0030.03311.46
4.4.60.0000.04011.46
4.4.50.0030.02311.46
4.4.40.0000.05711.46
4.4.30.0030.02011.46
4.4.20.0030.03711.46
4.4.10.0030.03711.46
4.4.00.0070.04711.46
4.3.110.0030.03311.46
4.3.100.0030.03711.46
4.3.90.0070.03011.46
4.3.80.0070.04711.46
4.3.70.0030.03311.46
4.3.60.0070.03011.46
4.3.50.0000.03711.46
4.3.40.0000.05011.46
4.3.30.0030.03011.46
4.3.20.0000.03011.46
4.3.10.0000.03311.46
4.3.00.0000.03711.46

preferences:
46.01 ms | 401 KiB | 5 Q