3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'Just gonna say sum stuff hare so ya just rolll wid itt. Yo.'; if (strlen(preg_replace('/\\s/si','',$message)) < 30 || preg_match('/(.)\1{6}/si',strtolower($message)) || preg_match('/(.{2})\1{3}/si',strtolower($message)) || preg_match('/(.+)\1{2}/si',strtolower($message))) { echo 'test'; } var_dump(strlen(preg_replace('/\\s/si','',$message)) < 30); var_dump(preg_match('/(.)\1{6}/si',strtolower($message))); var_dump(preg_match('/(.{2})\1{3}/si',strtolower($message))); var_dump(preg_match('/(.+)\1{2}/si',strtolower($message)));

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.00016.63
8.3.50.0070.01022.15
8.3.40.0000.01518.96
8.3.30.0040.01118.92
8.3.20.0020.00520.37
8.3.10.0000.00723.57
8.3.00.0090.00017.75
8.2.180.0110.01118.54
8.2.170.0090.00622.96
8.2.160.0170.00020.41
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0020.00526.16
8.2.120.0040.00422.28
8.2.110.0090.00022.25
8.2.100.0060.00618.03
8.2.90.0000.00919.18
8.2.80.0060.00317.97
8.2.70.0030.00617.75
8.2.60.0030.00718.04
8.2.50.0000.00818.07
8.2.40.0040.00419.94
8.2.30.0000.00718.11
8.2.20.0050.00317.84
8.2.10.0030.00518.01
8.2.00.0000.01017.91
8.1.280.0120.00325.92
8.1.270.0030.00522.11
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00023.77
8.1.230.0060.00619.09
8.1.220.0040.00417.74
8.1.210.0040.00718.77
8.1.200.0060.00317.48
8.1.190.0000.00817.55
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0000.00822.02
8.1.150.0080.00018.77
8.1.140.0070.00417.58
8.1.130.0000.00817.80
8.1.120.0040.00417.61
8.1.110.0080.00017.59
8.1.100.0040.00417.61
8.1.90.0040.00417.47
8.1.80.0000.00817.66
8.1.70.0000.00717.56
8.1.60.0040.00417.65
8.1.50.0000.00817.70
8.1.40.0040.00417.65
8.1.30.0040.00417.83
8.1.20.0030.00517.75
8.1.10.0060.00317.66
8.1.00.0040.00417.50
8.0.300.0030.00519.15
8.0.290.0030.00617.05
8.0.280.0030.00318.41
8.0.270.0000.00717.32
8.0.260.0060.00017.36
8.0.250.0030.00317.16
8.0.240.0070.00017.03
8.0.230.0040.00417.06
8.0.220.0070.00017.08
8.0.210.0000.00717.02
8.0.200.0040.00417.19
8.0.190.0040.00417.15
8.0.180.0000.01117.05
8.0.170.0040.00417.11
8.0.160.0050.00317.00
8.0.150.0000.00717.09
8.0.140.0050.00217.06
8.0.130.0000.00613.50
8.0.120.0040.00416.92
8.0.110.0000.00717.04
8.0.100.0050.00317.09
8.0.90.0000.00717.09
8.0.80.0080.00816.96
8.0.70.0000.00816.94
8.0.60.0070.00017.02
8.0.50.0070.00016.96
8.0.30.0100.00817.39
8.0.20.0110.01017.41
8.0.10.0000.00817.16
8.0.00.0070.01016.97
7.4.330.0030.00315.08
7.4.320.0000.00716.85
7.4.300.0060.00016.76
7.4.290.0030.00316.74
7.4.280.0000.00716.75
7.4.270.0030.00316.80
7.4.260.0070.00016.75
7.4.250.0000.00716.71
7.4.240.0020.00516.70
7.4.230.0070.00016.59
7.4.220.0130.00316.84
7.4.210.0090.00616.86
7.4.200.0000.00816.89
7.4.190.0040.00416.99
7.4.160.0080.00816.48
7.4.150.0060.01217.40
7.4.140.0080.01217.86
7.4.130.0100.00616.69
7.4.120.0080.01016.78
7.4.110.0170.00316.75
7.4.100.0130.00716.71
7.4.90.0050.01316.63
7.4.80.0190.02819.39
7.4.70.0080.01616.55
7.4.60.0190.00316.57
7.4.50.0060.00316.80
7.4.40.0060.01022.77
7.4.30.0070.01016.76
7.4.00.0070.01015.13
7.3.330.0020.00213.21
7.3.320.0050.00013.21
7.3.310.0060.00316.50
7.3.300.0030.00316.29
7.3.290.0130.00616.36
7.3.280.0090.01016.36
7.3.270.0160.00017.40
7.3.260.0070.01016.70
7.3.250.0100.01516.41
7.3.240.0090.00916.42
7.3.230.0140.00316.45
7.3.210.0110.00716.76
7.3.200.0070.01419.39
7.3.190.0030.01516.70
7.3.180.0030.01316.28
7.3.170.0070.01016.50
7.3.160.0160.00016.68
7.3.120.0090.00915.05
7.3.00.0110.00416.70
7.2.330.0140.00416.71
7.2.320.0070.01016.68
7.2.310.0070.01016.57
7.2.300.0100.00616.55
7.2.290.0070.01016.75
7.2.130.0030.00716.95
7.2.120.0060.00616.99
7.2.110.0030.01416.84
7.2.100.0000.01116.61
7.2.90.0070.01016.80
7.2.80.0000.01216.67
7.2.70.0110.00617.07
7.2.60.0090.00616.80
7.2.50.0140.00716.91
7.2.40.0060.00916.98
7.2.30.0110.01117.04
7.2.20.0030.00616.81
7.2.10.0080.00317.00
7.2.00.0060.00818.28
7.1.250.0120.00615.86
7.1.240.0080.00415.84
7.1.230.0080.00515.90
7.1.220.0000.01415.68
7.1.210.0000.01515.88
7.1.200.0150.00016.04
7.1.190.0130.00315.52
7.1.180.0000.01415.88
7.1.170.0100.00315.64
7.1.160.0040.01115.70
7.1.150.0090.00915.41
7.1.140.0070.00715.55
7.1.130.0110.00715.57
7.1.120.0130.00015.75
7.1.110.0030.00915.91
7.1.100.0030.00817.08
7.1.90.0080.00415.74
7.1.80.0120.00015.66
7.1.70.0010.00916.44
7.1.60.0080.01017.65
7.1.50.0060.01316.28
7.1.40.0030.00815.73
7.1.30.0040.00415.46
7.1.20.0090.00616.04
7.1.10.0040.00715.68
7.1.00.0050.04219.19
7.0.330.0060.00315.58
7.0.320.0070.00715.57
7.0.310.0000.01415.75
7.0.300.0070.00715.43
7.0.290.0060.00915.35
7.0.280.0060.00615.46
7.0.270.0060.00615.48
7.0.260.0060.00915.57
7.0.250.0040.00815.37
7.0.240.0070.00715.47
7.0.230.0080.00815.16
7.0.220.0100.00615.52
7.0.210.0100.01015.48
7.0.200.0070.00615.99
7.0.190.0110.00015.48
7.0.180.0070.00715.43
7.0.170.0070.00715.49
7.0.160.0100.00715.15
7.0.150.0000.01015.17
7.0.140.0000.04418.86
7.0.130.0030.01015.63
7.0.120.0060.00915.50
7.0.110.0110.00015.35
7.0.100.0030.00915.56
7.0.90.0030.01015.53
7.0.80.0030.00715.71
7.0.70.0030.00815.40
7.0.60.0020.04417.71
7.0.50.0030.04516.80
7.0.40.0070.02316.77
7.0.30.0100.02916.88
7.0.20.0150.02516.74
7.0.10.0070.03316.80
7.0.00.0070.02217.00
5.6.380.0110.00714.46
5.6.370.0140.00614.60
5.6.360.0120.00814.56
5.6.350.0200.00314.42
5.6.340.0130.01014.07
5.6.330.0050.01114.61
5.6.320.0120.00814.77
5.6.310.0060.01514.46
5.6.300.0110.00514.69
5.6.290.0120.00914.44
5.6.280.0070.04317.73
5.6.270.0140.00814.32
5.6.260.0150.00714.49
5.6.250.0110.01114.21
5.6.240.0080.01614.50
5.6.230.0140.00514.14
5.6.220.0100.00814.34
5.6.210.0100.04217.48
5.6.200.0080.04616.40
5.6.190.0050.02617.33
5.6.180.0100.02817.22
5.6.170.0170.04017.38
5.6.160.0040.03617.29
5.6.150.0120.03816.28
5.6.140.0070.04416.10
5.6.130.0100.04016.16
5.6.120.0030.04717.53
5.6.110.0070.02517.77
5.6.100.0070.04217.67
5.6.90.0020.02917.54
5.6.80.0060.02417.20
5.6.70.0030.01313.78
5.6.60.0070.01213.89
5.6.50.0170.00014.26
5.6.40.0110.01514.19
5.6.30.0110.01314.15
5.6.20.0200.00514.00
5.6.10.0150.01214.54
5.6.00.0140.01414.47
5.5.380.0050.00510.99
5.5.370.0100.00310.90
5.5.360.0110.00210.97
5.5.350.0100.01615.70
5.5.340.0080.03714.40
5.5.330.0070.04515.58
5.5.320.0170.02315.60
5.5.310.0150.04315.60
5.5.300.0020.04114.43
5.5.290.0050.04714.50
5.5.280.0060.02415.84
5.5.270.0090.03515.87
5.5.260.0060.03615.97
5.5.250.0070.04315.79
5.5.240.2160.02015.54
5.5.230.0050.01011.03
5.5.220.0060.00911.18
5.5.210.0090.00710.98
5.5.200.0060.01311.03
5.5.190.0090.00610.96
5.5.180.0070.00710.94
5.5.170.0070.00411.02
5.5.160.0110.00410.90
5.5.150.0000.01110.90
5.5.140.0040.00810.90
5.5.130.0090.00010.90
5.5.120.0000.01310.90
5.5.110.0060.00310.90
5.5.100.0100.00310.94
5.5.90.0070.00310.96
5.5.80.0000.01111.00
5.5.70.0070.00310.93
5.5.60.0030.00310.90
5.5.50.0090.00011.14
5.5.40.0100.00710.90
5.5.30.0110.00011.21
5.5.20.0110.00711.16
5.5.10.0120.00811.13
5.5.00.0090.00910.90
5.4.450.0350.03215.20
5.4.440.0150.03915.20
5.4.430.0460.02515.24
5.4.420.0380.02815.21
5.4.410.0510.02915.08
5.4.400.0090.02815.10
5.4.390.0480.02714.84
5.4.380.0180.03514.76
5.4.370.0450.03514.74
5.4.360.0270.02314.76
5.4.350.0170.03514.87
5.4.340.0220.04014.82
5.4.330.0080.00310.98
5.4.320.0100.02411.69
5.4.310.0080.02311.74
5.4.300.0090.02011.70
5.4.290.0080.02211.67
5.4.280.0060.02211.62
5.4.270.0040.02811.65
5.4.260.0060.02511.73
5.4.250.0110.02411.62
5.4.240.0020.02511.62
5.4.230.0070.02611.62
5.4.220.0080.02511.62
5.4.210.0090.01811.70
5.4.200.0070.02911.70
5.4.190.0070.02211.62
5.4.180.0090.01911.61
5.4.170.0060.02411.66
5.4.160.0080.02211.64
5.4.150.0100.02111.66
5.4.140.0070.02211.47
5.4.130.0080.02111.50
5.4.120.0100.01811.43
5.4.110.0070.02211.43
5.4.100.0090.02011.43
5.4.90.0050.02511.48
5.4.80.0090.02011.43
5.4.70.0060.02311.43
5.4.60.0100.01611.47
5.4.50.0070.02511.45
5.4.40.0050.03211.42
5.4.30.0060.02611.43
5.4.20.0080.02011.44
5.4.10.0020.02211.46
5.4.00.0060.01811.20
5.3.290.0070.02711.85
5.3.280.0080.02111.80
5.3.270.0060.02511.81
5.3.260.0040.02711.81
5.3.250.0070.02311.81
5.3.240.0050.02211.81
5.3.230.0080.01911.80
5.3.220.0060.02211.79
5.3.210.0080.01911.79
5.3.200.0040.02611.79
5.3.190.0080.02011.79
5.3.180.0050.02411.79
5.3.170.0040.02311.78
5.3.160.0070.02111.79
5.3.150.0040.02111.79
5.3.140.0090.01711.78
5.3.130.0050.02611.78
5.3.120.0080.02211.78
5.3.110.0080.02511.78
5.3.100.0040.02211.51
5.3.90.0060.01911.49
5.3.80.0040.02411.49
5.3.70.0040.02911.49
5.3.60.0070.02711.48
5.3.50.0060.02511.45
5.3.40.0060.02111.45
5.3.30.0040.02311.43
5.3.20.0040.02211.32
5.3.10.0080.01611.30
5.3.00.0020.02411.29
5.2.170.0020.01910.05
5.2.160.0040.01710.04
5.2.150.0050.01610.04
5.2.140.0080.01410.04
5.2.130.0050.01510.03
5.2.120.0040.01710.03
5.2.110.0030.01910.03
5.2.100.0080.02110.02
5.2.90.0020.02210.03
5.2.80.0040.02010.02
5.2.70.0050.01710.02
5.2.60.0040.02010.00
5.2.50.0050.0179.98
5.2.40.0040.0189.98
5.2.30.0030.0199.96
5.2.20.0040.0189.96
5.2.10.0020.0199.91
5.2.00.0070.0149.84
5.1.60.0020.0149.48
5.1.50.0050.0149.48
5.1.40.0080.0169.47
5.1.30.0060.0199.65
5.1.20.0050.0169.65
5.1.10.0070.0139.52
5.1.00.0060.0149.52
5.0.50.0060.0098.76
5.0.40.0050.0098.69
5.0.30.0030.0198.60
5.0.20.0070.0098.59
5.0.10.0050.0128.58
5.0.00.0020.0178.57
4.4.90.0040.0097.84
4.4.80.0040.0087.83
4.4.70.0040.0097.82
4.4.60.0050.0087.83
4.4.50.0030.0087.83
4.4.40.0020.0187.80
4.4.30.0040.0087.83
4.4.20.0020.0117.87
4.4.10.0040.0097.87
4.4.00.0020.0157.83
4.3.110.0030.0107.79
4.3.100.0030.0107.78
4.3.90.0030.0097.77
4.3.80.0010.0167.74
4.3.70.0020.0107.76
4.3.60.0040.0097.76
4.3.50.0020.0107.76
4.3.40.0020.0157.72
4.3.30.0070.0107.10
4.3.20.0010.0157.09
4.3.10.0010.0117.07
4.3.00.0170.01510.60

preferences:
42.4 ms | 401 KiB | 5 Q