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('/(.{3})\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.0140.00016.63
8.3.50.0050.01422.14
8.3.40.0070.01018.92
8.3.30.0070.00719.03
8.3.20.0040.00420.34
8.3.10.0040.00423.66
8.3.00.0100.00017.75
8.2.180.0080.00818.41
8.2.170.0040.01122.96
8.2.160.0100.00720.34
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00022.34
8.2.110.0090.00019.32
8.2.100.0110.00017.84
8.2.90.0050.00319.22
8.2.80.0040.00417.97
8.2.70.0030.00717.61
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0080.00020.07
8.2.30.0080.00018.04
8.2.20.0050.00317.86
8.2.10.0030.00618.10
8.2.00.0030.00717.81
8.1.280.0120.00325.92
8.1.270.0050.00323.85
8.1.260.0090.00026.35
8.1.250.0020.00528.09
8.1.240.0090.00021.31
8.1.230.0070.00417.58
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.25
8.1.190.0060.00317.36
8.1.180.0030.00618.10
8.1.170.0090.00018.77
8.1.160.0000.00722.02
8.1.150.0050.00318.87
8.1.140.0060.00317.66
8.1.130.0000.00717.95
8.1.120.0070.00017.58
8.1.110.0050.00317.52
8.1.100.0060.00317.66
8.1.90.0070.00017.56
8.1.80.0000.00717.64
8.1.70.0030.00317.63
8.1.60.0060.00317.76
8.1.50.0030.00517.70
8.1.40.0050.00317.73
8.1.30.0040.00417.71
8.1.20.0000.00817.79
8.1.10.0070.00017.53
8.1.00.0040.00417.64
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0000.00718.49
8.0.270.0000.00717.27
8.0.260.0060.00017.31
8.0.250.0040.00417.09
8.0.240.0060.00017.10
8.0.230.0000.00717.00
8.0.220.0070.00017.09
8.0.210.0030.00316.96
8.0.200.0070.00017.13
8.0.190.0020.00517.13
8.0.180.0060.00317.09
8.0.170.0090.00017.02
8.0.160.0050.00317.14
8.0.150.0000.00717.02
8.0.140.0080.00017.00
8.0.130.0030.00313.54
8.0.120.0040.00416.98
8.0.110.0000.00716.93
8.0.100.0000.00817.18
8.0.90.0000.00816.93
8.0.80.0080.00817.10
8.0.70.0000.00716.98
8.0.60.0020.00517.18
8.0.50.0050.00217.07
8.0.30.0120.00817.28
8.0.20.0080.01117.46
8.0.10.0040.00417.18
8.0.00.0080.00917.00
7.4.330.0030.00215.12
7.4.320.0000.00816.64
7.4.300.0060.00016.89
7.4.290.0000.00716.75
7.4.280.0060.00316.78
7.4.270.0040.00416.74
7.4.260.0040.00416.70
7.4.250.0040.00416.79
7.4.240.0020.00516.80
7.4.230.0030.00316.84
7.4.220.0100.00616.80
7.4.210.0060.00916.89
7.4.200.0000.00717.01
7.4.190.0040.00416.65
7.4.160.0170.00316.56
7.4.150.0130.00617.40
7.4.140.0080.00917.86
7.4.130.0100.00916.68
7.4.120.0100.00716.66
7.4.110.0060.01216.75
7.4.100.0110.01416.46
7.4.90.0060.01216.73
7.4.80.0070.01719.39
7.4.70.0160.00716.67
7.4.60.0110.00616.77
7.4.50.0040.00416.46
7.4.40.0090.00922.77
7.4.30.0060.00916.82
7.4.00.0040.01115.42
7.3.330.0030.00313.30
7.3.320.0000.00713.29
7.3.310.0040.00516.43
7.3.300.0000.00716.35
7.3.290.0130.00316.34
7.3.280.0050.01116.40
7.3.270.0070.01117.40
7.3.260.0060.01316.35
7.3.250.0100.00716.59
7.3.240.0030.01716.41
7.3.230.0130.00316.39
7.3.210.0030.01416.60
7.3.200.0110.01119.39
7.3.190.0210.00316.35
7.3.180.0100.00716.64
7.3.170.0120.00416.56
7.3.160.0030.01416.57
7.3.120.0040.00815.06
7.2.330.0140.00316.59
7.2.320.0080.00916.71
7.2.310.0120.00916.54
7.2.300.0060.01016.77
7.2.290.0030.02016.67
7.2.60.0060.00616.80
7.2.00.0040.01119.53
7.1.200.0070.00715.93
7.1.100.0030.01018.36
7.1.70.0040.00416.94
7.1.60.0100.01419.46
7.1.50.0110.01117.04
7.1.00.0070.07322.42
7.0.200.0100.00016.87
7.0.140.0030.07322.21
7.0.60.0130.07719.84
7.0.50.0100.04317.93
7.0.40.0030.06320.07
7.0.30.0370.03320.18
7.0.20.0300.07720.15
7.0.10.0030.06020.05
7.0.00.0070.04320.21
5.6.280.0130.06320.90
5.6.210.0070.05720.54
5.6.200.0130.07718.09
5.6.190.0070.05320.63
5.6.180.0200.08320.45
5.6.170.0200.04720.40
5.6.160.0070.04320.38
5.6.150.0030.05718.19
5.6.140.0030.08318.11
5.6.130.0030.04018.12
5.6.120.0100.06721.05
5.6.110.0030.06020.98
5.6.100.0170.07720.87
5.6.90.0170.05321.01
5.6.80.0030.06320.35
5.6.70.4470.04720.50
5.5.350.0070.08720.52
5.5.340.0130.04017.91
5.5.330.0070.04320.17
5.5.320.0300.08020.41
5.5.310.0230.04020.21
5.5.300.0070.04718.01
5.5.290.0100.07717.96
5.5.280.0070.08320.77
5.5.270.0030.08720.75
5.5.260.0030.08320.79
5.5.250.0000.05020.69
5.5.240.0330.07320.18
5.4.450.0130.06719.59
5.4.440.0870.08719.48
5.4.430.0130.05319.44
5.4.420.0770.05319.30
5.4.410.0100.05319.18
5.4.400.0800.05018.79
5.4.390.0770.05319.16
5.4.380.0430.06718.74
5.4.370.0400.05718.72
5.4.360.0200.05718.74
5.4.350.0170.06018.63
5.4.340.0370.05718.57
5.4.320.0060.04312.46
5.4.310.0080.04112.45
5.4.300.0060.04412.45
5.4.290.0130.04912.45
5.4.280.0090.03612.34
5.4.270.0110.05112.34
5.4.260.0110.04912.34
5.4.250.0070.05712.35
5.4.240.0170.04412.34
5.4.230.0090.04612.34
5.4.220.0100.05012.34
5.4.210.0050.04212.34
5.4.200.0070.04312.34
5.4.190.0120.05512.34
5.4.180.0090.05612.33
5.4.170.0090.05812.34
5.4.160.0060.04112.34
5.4.150.0100.04712.34
5.4.140.0160.06212.02
5.4.130.0060.05612.01
5.4.120.0120.04911.96
5.4.110.0050.05611.96
5.4.100.0150.04611.96
5.4.90.0080.05411.96
5.4.80.0100.03411.96
5.4.70.0070.04511.95
5.4.60.0080.03511.95
5.4.50.0040.03911.96
5.4.40.0060.03411.94
5.4.30.0040.03911.95
5.4.20.0090.03411.94
5.4.10.0030.03911.95
5.4.00.0070.03511.43
5.3.290.0080.03612.80
5.3.280.0120.03312.71
5.3.270.0060.04212.72
5.3.260.0050.04112.72
5.3.250.0060.03812.71
5.3.240.0070.04112.72
5.3.230.0060.03812.71
5.3.220.0050.03912.68
5.3.210.0080.03812.68
5.3.200.0070.03712.68
5.3.190.0080.05212.68
5.3.180.0110.03612.68
5.3.170.0080.03812.67
5.3.160.0020.04312.68
5.3.150.0060.03812.67
5.3.140.0060.03712.66
5.3.130.0080.03912.66
5.3.120.0070.04112.66
5.3.110.0060.03912.66
5.3.100.0110.03412.12
5.3.90.0040.04112.08
5.3.80.0060.03912.07
5.3.70.0090.03512.08
5.3.60.0080.05612.07
5.3.50.0110.03412.00
5.3.40.0080.04312.00
5.3.30.0060.03611.96
5.3.20.0050.03711.74
5.3.10.0070.03411.70
5.3.00.0080.03611.69
5.2.170.0060.0309.19
5.2.160.0080.0279.19
5.2.150.0080.0319.20
5.2.140.0040.0329.19
5.2.130.0090.0269.15
5.2.120.0050.0399.15
5.2.110.0010.0349.16
5.2.100.0050.0309.15
5.2.90.0050.0299.15
5.2.80.0040.0329.14
5.2.70.0040.0339.14
5.2.60.0060.0289.10
5.2.50.0060.0309.07
5.2.40.0050.0289.05
5.2.30.0070.0279.03
5.2.20.0050.0289.02
5.2.10.0060.0288.92
5.2.00.0080.0278.78
5.1.60.0050.0238.07
5.1.50.0030.0268.06
5.1.40.0030.0258.04
5.1.30.0020.0308.39
5.1.20.0040.0288.41
5.1.10.0040.0298.14
5.1.00.0090.0328.14
5.0.50.0010.0316.63
5.0.40.0070.0246.49
5.0.30.0040.0346.30
5.0.20.0050.0196.27
5.0.10.0030.0216.25
5.0.00.0040.0316.25
4.4.90.0020.0174.78
4.4.80.0030.0164.76
4.4.70.0030.0174.76
4.4.60.0020.0174.76
4.4.50.0040.0154.77
4.4.40.0050.0344.71
4.4.30.0040.0224.76
4.4.20.0020.0184.84
4.4.10.0050.0134.84
4.4.00.0070.0224.76
4.3.110.0050.0154.67
4.3.100.0010.0174.66
4.3.90.0030.0164.63
4.3.80.0030.0254.58
4.3.70.0020.0164.63
4.3.60.0020.0164.63
4.3.50.0050.0144.63
4.3.40.0020.0254.53
4.3.30.0010.0173.30
4.3.20.0020.0163.27
4.3.10.0020.0173.23
4.3.00.0230.03010.31

preferences:
43.58 ms | 400 KiB | 5 Q