3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/[^\w]bored\s/'; if (preg_matc($pattern, 'I am bored on saturday, I will lear programing')) { echo 'Bored is present'; } else { echo 'Not bored string'; }

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.0100.01016.49
8.3.50.0090.00721.91
8.3.40.0090.00618.76
8.3.30.0120.00319.04
8.3.20.0050.00320.30
8.3.10.0000.00823.58
8.3.00.0050.00320.77
8.2.180.0090.00616.49
8.2.170.0110.00422.96
8.2.160.0140.00020.17
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0000.00820.91
8.2.110.0070.00322.29
8.2.100.0100.00317.91
8.2.90.0000.00818.96
8.2.80.0030.00517.97
8.2.70.0050.00317.50
8.2.60.0070.00317.93
8.2.50.0100.00018.07
8.2.40.0040.00419.95
8.2.30.0040.00418.18
8.2.20.0000.00817.66
8.2.10.0040.00417.93
8.2.00.0030.00517.65
8.1.280.0120.00625.92
8.1.270.0040.00423.76
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.14
8.1.230.0040.00719.04
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0050.00218.51
8.1.160.0030.00621.95
8.1.150.0090.00018.64
8.1.140.0050.00217.46
8.1.130.0030.00317.74
8.1.120.0050.00517.46
8.1.110.0040.00417.32
8.1.100.0080.00017.38
8.1.90.0000.00717.41
8.1.80.0040.00417.42
8.1.70.0030.00317.23
8.1.60.0080.00317.37
8.1.50.0040.00417.42
8.1.40.0040.00417.41
8.1.30.0040.00417.47
8.1.20.0000.00717.48
8.1.10.0000.00817.55
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0070.00016.80
8.0.280.0000.00718.42
8.0.270.0090.00017.20
8.0.260.0030.00317.24
8.0.250.0030.00316.90
8.0.240.0000.00716.99
8.0.230.0070.00016.94
8.0.220.0050.00316.95
8.0.210.0040.00416.87
8.0.200.0000.00616.96
8.0.190.0070.00017.01
8.0.180.0000.00816.95
8.0.170.0040.00416.90
8.0.160.0040.00416.96
8.0.150.0000.00716.90
8.0.140.0060.00316.89
8.0.130.0050.00013.39
8.0.120.0040.00416.87
8.0.110.0070.00016.88
8.0.100.0030.00316.89
8.0.90.0050.00216.67
8.0.80.0070.01416.93
8.0.70.0040.00416.75
8.0.60.0000.00716.77
8.0.50.0000.00716.77
8.0.30.0100.01016.93
8.0.20.0090.01317.40
8.0.10.0040.00416.86
8.0.00.0090.01116.70
7.4.330.0050.00015.00
7.4.320.0040.00416.48
7.4.300.0050.00216.55
7.4.290.0000.00716.60
7.4.280.0000.00716.54
7.4.270.0030.00316.54
7.4.260.0070.00016.52
7.4.250.0070.00016.41
7.4.240.0040.00416.62
7.4.230.0000.00716.71
7.4.220.0100.00716.65
7.4.210.0050.01016.66
7.4.200.0030.00316.70
7.4.190.0000.00716.73
7.4.160.0190.00016.42
7.4.150.0120.01217.40
7.4.140.0070.01017.86
7.4.130.0130.00516.68
7.4.120.0140.00516.50
7.4.110.0080.01116.38
7.4.100.0130.00316.52
7.4.90.0070.01116.36
7.4.80.0060.01119.39
7.4.70.0120.00416.44
7.4.60.0070.01016.45
7.4.50.0040.00016.41
7.4.40.0110.00716.50
7.4.30.0120.00616.68
7.4.10.0130.00714.91
7.4.00.0050.01215.11
7.3.330.0050.00313.19
7.3.320.0030.00313.13
7.3.310.0020.00516.35
7.3.300.0000.00716.25
7.3.290.0080.00516.32
7.3.280.0090.00816.25
7.3.270.0060.01317.40
7.3.260.0070.01016.21
7.3.250.0090.01216.41
7.3.240.0190.00416.22
7.3.230.0090.01516.53
7.3.210.0030.01316.29
7.3.200.0160.00319.39
7.3.190.0070.01416.29
7.3.180.0090.00916.36
7.3.170.0080.00816.66
7.3.160.0090.00916.50
7.3.130.0100.00514.89
7.3.120.0070.00814.88
7.3.110.0060.01014.80
7.3.100.0070.00714.76
7.3.90.0030.01014.80
7.3.80.0030.01114.82
7.3.70.0070.00714.86
7.3.60.0030.01314.69
7.3.50.0090.00514.78
7.3.40.0060.00814.66
7.3.30.0080.00614.83
7.3.20.0050.00816.70
7.3.10.0070.00816.64
7.3.00.0050.01016.51
7.2.330.0070.01016.55
7.2.320.0120.00616.43
7.2.310.0080.00816.30
7.2.300.0030.01316.28
7.2.290.0130.00916.43
7.2.260.0030.01415.06
7.2.250.0040.01214.89
7.2.240.0070.00614.76
7.2.230.0070.01015.04
7.2.220.0080.00914.76
7.2.210.0090.00715.06
7.2.200.0060.01014.93
7.2.190.0050.00814.99
7.2.180.0070.00714.73
7.2.170.0060.00814.90
7.2.160.0070.00714.87
7.2.150.0020.01216.73
7.2.140.0040.00716.78
7.2.130.0040.01016.66
7.2.120.0080.00616.76
7.2.110.0040.00816.80
7.2.100.0050.01116.78
7.2.90.0060.00616.70
7.2.80.0050.00716.84
7.2.70.0070.00716.65
7.2.60.0040.00916.70
7.2.50.0040.01116.68
7.2.40.0060.00516.63
7.2.30.0100.00416.76
7.2.20.0070.00716.86
7.2.10.0080.00716.75
7.2.00.0080.00817.37
7.1.330.0050.00915.49
7.1.320.0070.00715.70
7.1.310.0050.01015.44
7.1.300.0040.01115.53
7.1.290.0060.00715.57
7.1.280.0040.00815.71
7.1.270.0030.00715.52
7.1.260.0070.00515.49
7.1.250.0090.00615.65
7.1.240.0050.01015.50
7.1.230.0050.00415.69
7.1.220.0060.00315.61
7.1.210.0080.00315.52
7.1.200.0040.00715.62
7.1.190.0060.00615.56
7.1.180.0070.00615.65
7.1.170.0040.00815.57
7.1.160.0060.00815.61
7.1.150.0050.01015.34
7.1.140.0060.00815.62
7.1.130.0050.01015.68
7.1.120.0060.00915.63
7.1.110.0030.00815.62
7.1.100.0070.00616.48
7.1.90.0070.00815.61
7.1.80.0040.00815.73
7.1.70.0030.00716.08
7.1.60.0030.01316.98
7.1.50.0060.00815.84
7.1.40.0000.01215.54
7.1.30.0000.01215.64
7.1.20.0020.01215.68
7.1.10.0050.00615.45
7.1.00.0070.02817.83
7.0.330.0060.00315.29
7.0.320.0050.00915.22
7.0.310.0080.00015.18
7.0.300.0050.01015.17
7.0.290.0080.00615.34
7.0.280.0080.00515.33
7.0.270.0030.01115.37
7.0.260.0090.00515.11
7.0.250.0090.00215.15
7.0.240.0070.00715.15
7.0.230.0060.00615.42
7.0.220.0080.00315.36
7.0.210.0050.00815.36
7.0.200.0060.00515.08
7.0.190.0020.01315.35
7.0.180.0060.00615.45
7.0.170.0070.00715.25
7.0.160.0040.00715.22
7.0.150.0050.00715.15
7.0.140.0070.02717.43
7.0.130.0050.00815.15
7.0.120.0070.00515.36
7.0.110.0050.00815.38
7.0.100.0060.00915.35
7.0.90.0060.00815.41
7.0.80.0080.00515.54
7.0.70.0060.00715.18
7.0.60.0070.03216.85
7.0.50.0040.02616.30
7.0.40.0060.03315.76
7.0.30.0160.02715.66
7.0.20.0160.02415.71
7.0.10.0120.03015.71
7.0.00.0090.03315.74
5.6.400.0020.01314.19
5.6.390.0020.00914.25
5.6.380.0010.01014.37
5.6.370.0030.00814.27
5.6.360.0030.01214.35
5.6.350.0070.00914.28
5.6.340.0030.01013.90
5.6.330.0050.00914.29
5.6.320.0050.00814.30
5.6.310.0030.00714.35
5.6.300.0050.00714.26
5.6.290.0070.00613.97
5.6.280.0030.03016.64
5.6.270.0070.00814.39
5.6.260.0060.00514.12
5.6.250.0090.00614.18
5.6.240.0050.01114.39
5.6.230.0060.00814.03
5.6.220.0030.01214.08
5.6.210.0030.02316.37
5.6.200.0050.02215.60
5.6.190.0020.02016.15
5.6.180.0270.02016.29
5.6.170.0130.01616.21
5.6.160.0030.03616.21
5.6.150.0070.02715.53
5.6.140.0070.03115.44
5.6.130.0080.03015.55
5.6.120.0090.01816.40
5.6.110.0100.03116.45
5.6.100.0080.03116.43
5.6.90.0080.02216.44
5.6.80.0040.02116.18
5.6.70.0120.02716.07
5.6.60.0080.00514.17
5.6.50.0030.00914.25
5.6.40.0050.01014.21
5.6.30.0070.01013.99
5.6.20.0020.01213.97
5.6.10.0030.00813.99
5.6.00.0040.00613.95
5.5.380.0080.00613.98
5.5.370.0020.00814.00
5.5.360.0050.00814.06
5.5.350.0110.02816.12
5.5.340.0050.02215.49
5.5.330.0090.01315.97
5.5.320.0120.02216.24
5.5.310.0140.03016.08
5.5.300.0070.02115.33
5.5.290.0050.02915.31
5.5.280.0030.03816.37
5.5.270.0060.03616.34
5.5.260.0050.02916.22
5.5.250.0040.02516.27
5.5.240.0020.02215.95
5.5.230.0050.01013.99
5.5.220.0080.00613.95
5.5.210.0050.00814.04
5.5.200.0030.00914.07
5.5.190.0050.00813.90
5.5.180.0050.00713.99
5.5.170.0050.00613.98
5.5.160.0050.00913.99
5.5.150.0100.00414.15
5.5.140.0080.00314.01
5.5.130.0040.00414.01
5.5.120.0060.00614.07
5.5.110.0080.00514.06
5.5.100.0050.00713.77
5.5.90.0090.00613.97
5.5.80.0100.00213.91
5.5.70.0030.01014.01
5.5.60.0020.01313.96
5.5.50.0040.00714.05
5.5.40.0080.00513.93
5.5.30.0030.01014.09
5.5.20.0110.00314.02
5.5.10.0060.00313.78
5.5.00.0020.01113.81
5.4.450.0100.02115.46
5.4.440.0240.02215.44
5.4.430.0270.01815.47
5.4.420.0250.00415.46
5.4.410.0150.01415.23
5.4.400.0080.03415.14
5.4.390.0100.02415.19
5.4.380.0080.02115.18
5.4.370.0040.02015.13
5.4.360.0040.02015.17
5.4.350.0040.01812.95
5.4.340.0060.01912.95
5.4.330.0020.00713.44
5.4.320.0070.01613.11
5.4.310.0060.01713.11
5.4.300.0030.01613.11
5.4.290.0070.01513.11
5.4.280.0030.01813.08
5.4.270.0060.01513.08
5.4.260.0050.01613.08
5.4.250.0060.01613.08
5.4.240.0030.01713.08
5.4.230.0010.01813.07
5.4.220.0040.01913.07
5.4.210.0050.01713.07
5.4.200.0050.01613.07
5.4.190.0060.01513.07
5.4.180.0080.01413.07
5.4.170.0070.01213.08
5.4.160.0030.01813.07
5.4.150.0030.01813.07
5.4.140.0030.01812.97
5.4.130.0050.01412.96
5.4.120.0050.01412.95
5.4.110.0040.01512.95
5.4.100.0070.02012.95
5.4.90.0070.01712.95
5.4.80.0050.02012.95
5.4.70.0030.01712.95
5.4.60.0070.01712.95
5.4.50.0030.01812.95
5.4.40.0030.01912.94
5.4.30.0060.01512.94
5.4.20.0060.01712.94
5.4.10.0060.02112.94
5.4.00.0060.01612.77
5.3.290.0050.01813.23
5.3.280.0040.01613.20
5.3.270.0050.01513.20
5.3.260.0040.02013.20
5.3.250.0050.01713.20
5.3.240.0050.01613.20
5.3.230.0060.01513.20
5.3.220.0040.02013.19
5.3.210.0060.01913.19
5.3.200.0040.01913.19
5.3.190.0060.01413.19
5.3.180.0040.01913.19
5.3.170.0040.01613.18
5.3.160.0060.02213.18
5.3.150.0050.01513.18
5.3.140.0050.01613.18
5.3.130.0030.01713.18
5.3.120.0050.01713.18
5.3.110.0060.01513.18
5.3.100.0040.01613.00
5.3.90.0070.01312.99
5.3.80.0090.01312.99
5.3.70.0070.01612.99
5.3.60.0030.01612.98
5.3.50.0040.01712.96
5.3.40.0050.01512.96
5.3.30.0050.01512.94
5.3.20.0020.01812.87
5.3.10.0060.01512.86
5.3.00.0040.01712.85
5.2.170.0050.0309.18
5.2.160.0040.0309.18
5.2.150.0100.0389.18
5.2.140.0060.0329.18
5.2.130.0110.0279.14
5.2.120.0060.0299.14
5.2.110.0040.0319.15
5.2.100.0050.0309.14
5.2.90.0060.0449.14
5.2.80.0050.0509.14
5.2.70.0080.0419.14
5.2.60.0070.0539.09
5.2.50.0090.0419.05
5.2.40.0060.0399.04
5.2.30.0070.0299.01
5.2.20.0080.0389.00
5.2.10.0040.0288.92
5.2.00.0060.0288.77
5.1.60.0050.0248.07
5.1.50.0100.0328.06
5.1.40.0050.0258.04
5.1.30.0060.0328.39
5.1.20.0080.0238.41
5.1.10.0070.0238.14
5.1.00.0100.0208.14
5.0.50.0030.0216.62
5.0.40.0050.0186.47
5.0.30.0060.0286.29
5.0.20.0050.0186.26
5.0.10.0050.0186.23
5.0.00.0070.0306.23
4.4.90.0040.0204.78
4.4.80.0040.0144.76
4.4.70.0050.0134.76
4.4.60.0020.0164.75
4.4.50.0040.0144.77
4.4.40.0040.0244.71
4.4.30.0020.0174.76
4.4.20.0030.0154.84
4.4.10.0030.0154.85
4.4.00.0040.0274.76
4.3.110.0030.0164.67
4.3.100.0050.0144.66
4.3.90.0040.0144.64
4.3.80.0060.0254.58
4.3.70.0060.0174.63
4.3.60.0040.0184.63
4.3.50.0020.0224.63
4.3.40.0050.0234.53
4.3.30.0000.0183.28
4.3.20.0020.0233.25
4.3.10.0030.0163.22
4.3.00.0030.0207.43

preferences:
35.5 ms | 401 KiB | 5 Q