3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strs = ['%%%[[http://hello | world]] **bold**%%%', ' %%%[[http://hello | world]] **bold**%%%']; foreach ($strs as $str) { var_dump(preg_match('/^(\s{2,}).+/', $str)); var_dump(preg_match('/^\s*(```)/', $str)); var_dump(preg_match('/^\s*(```)(.*)(```)\s*$/', $str)); var_dump(preg_match('/```\s*$/', $str)); var_dump(preg_match('/^\s{2,}/', $str)); echo "--------------------\n"; }

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.130.0060.00318.52
8.3.120.0040.00420.66
8.3.110.0100.01020.94
8.3.100.0130.00724.06
8.3.90.0040.00426.77
8.3.80.0100.00018.43
8.3.70.0160.00016.75
8.3.60.0070.01116.75
8.3.50.0140.00922.17
8.3.40.0190.00318.84
8.3.30.0040.01218.79
8.3.20.0080.00020.34
8.3.10.0050.00323.65
8.3.00.0030.00717.63
8.2.250.0030.01816.69
8.2.240.0050.00517.16
8.2.230.0000.00922.58
8.2.220.0040.00437.54
8.2.210.0100.00326.77
8.2.200.0040.00418.42
8.2.190.0150.00416.58
8.2.180.0130.00618.41
8.2.170.0140.00722.96
8.2.160.0100.00320.55
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00717.63
8.2.110.0000.01122.42
8.2.100.0100.00317.91
8.2.90.0060.00319.23
8.2.80.0120.00017.97
8.2.70.0030.00617.88
8.2.60.0030.00517.91
8.2.50.0040.00418.07
8.2.40.0040.00421.13
8.2.30.0000.00720.62
8.2.20.0030.00617.82
8.2.10.0000.00818.25
8.2.00.0040.00418.10
8.1.300.0040.00418.04
8.1.290.0070.00330.84
8.1.280.0140.00025.92
8.1.270.0050.00323.99
8.1.260.0070.01126.35
8.1.250.0050.00328.09
8.1.240.0040.00422.52
8.1.230.0090.00317.64
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.01017.60
8.1.190.0030.00617.48
8.1.180.0000.00818.10
8.1.170.0000.00819.20
8.1.160.0080.00022.06
8.1.150.0000.00818.99
8.1.140.0040.00419.60
8.1.130.0000.00717.81
8.1.120.0070.00017.62
8.1.110.0060.00317.59
8.1.100.0070.00017.53
8.1.90.0000.00717.53
8.1.80.0030.00617.65
8.1.70.0030.00317.67
8.1.60.0060.00317.78
8.1.50.0040.00417.59
8.1.40.0000.00817.68
8.1.30.0100.00317.84
8.1.20.0040.00417.84
8.1.10.0060.00317.71
8.1.00.0000.00817.66
8.0.300.0030.00518.90
8.0.290.0040.00417.00
8.0.280.0050.00318.50
8.0.270.0030.00517.31
8.0.260.0030.00317.36
8.0.250.0070.00017.09
8.0.240.0000.00717.02
8.0.230.0000.00817.19
8.0.220.0040.00417.09
8.0.210.0060.00317.00
8.0.200.0070.00317.11
8.0.190.0030.00517.00
8.0.180.0000.00717.06
8.0.170.0000.00817.11
8.0.160.0020.00517.08
8.0.150.0040.00416.91
8.0.140.0000.00717.07
8.0.130.0030.00313.46
8.0.120.0080.00017.06
8.0.110.0000.00817.09
8.0.100.0000.00917.05
8.0.90.0040.00417.04
8.0.80.0060.01017.12
8.0.70.0040.00416.98
8.0.60.0070.00016.93
8.0.50.0000.00717.14
8.0.30.0070.01416.97
8.0.20.0130.00617.44
8.0.10.0070.00017.17
8.0.00.0060.01216.99
7.4.330.0000.00615.16
7.4.320.0080.00016.82
7.4.300.0070.00016.65
7.4.290.0050.00316.73
7.4.280.0030.00616.85
7.4.270.0000.00816.70
7.4.260.0030.00316.70
7.4.250.0080.00016.71
7.4.240.0070.00016.82
7.4.230.0030.00316.94
7.4.220.0130.00716.81
7.4.210.0070.01416.78
7.4.200.0000.00716.75
7.4.160.0120.00416.72
7.4.150.0180.00017.40
7.4.140.0060.01217.86
7.4.130.0160.00316.70
7.4.120.0090.00916.63
7.4.110.0070.01116.51
7.4.100.0040.01416.48
7.4.90.0030.01416.80
7.4.80.0130.00319.39
7.4.70.0090.00916.56
7.4.60.0050.01116.85
7.4.50.0040.00416.85
7.4.40.0060.01016.52
7.4.30.0070.01016.85
7.4.00.0030.01215.17
7.3.330.0000.00613.30
7.3.320.0050.00013.36
7.3.310.0040.00416.31
7.3.300.0040.00416.35
7.3.290.0090.00816.47
7.3.280.0110.00616.43
7.3.270.0070.01017.40
7.3.260.0150.00916.48
7.3.240.0110.00816.67
7.3.230.0090.00916.77
7.3.210.0100.00716.69
7.3.200.0120.00416.43
7.3.190.0060.01216.42
7.3.180.0080.01216.91
7.3.170.0130.00316.78
7.3.160.0040.01116.49
7.3.120.0060.01214.96
7.3.110.0090.00615.03
7.3.100.0100.01014.91
7.3.90.0040.01115.26
7.3.80.0040.01114.94
7.3.70.0040.00415.16
7.3.60.0040.01115.10
7.3.50.0030.01014.75
7.3.40.0040.00814.88
7.3.30.0060.00814.82
7.3.20.0060.00316.80
7.3.10.0060.00316.66
7.3.00.0000.01316.96
7.2.330.0170.00716.70
7.2.320.0110.00716.57
7.2.310.0140.00516.62
7.2.300.0130.01016.73
7.2.290.0100.00916.66
7.2.250.0120.00915.32
7.2.240.0160.00414.98
7.2.230.0070.00715.12
7.2.220.0090.00615.19
7.2.210.0060.01015.14
7.2.200.0040.00815.23
7.2.190.0030.01015.02
7.2.180.0100.00614.92
7.2.170.0060.01015.34
7.2.160.0000.01614.97
7.2.150.0130.00317.12
7.2.140.0150.00017.29
7.2.130.0070.01017.00
7.2.120.0030.01217.10
7.2.110.0110.00417.11
7.2.100.0030.00717.07
7.2.90.0120.00316.79
7.2.80.0100.00316.71
7.2.70.0000.01217.06
7.2.60.0030.00816.81
7.2.50.0110.00316.95
7.2.40.0050.00516.95
7.2.30.0070.00717.09
7.2.20.0030.01017.16
7.2.10.0070.00717.14
7.2.00.0030.00918.32
7.1.330.0100.01015.97
7.1.320.0080.00816.16
7.1.310.0090.00616.03
7.1.300.0080.00315.99
7.1.290.0060.00316.00
7.1.280.0000.01415.82
7.1.270.0040.01215.65
7.1.260.0060.00316.10
7.1.250.0070.00716.20
7.1.240.0060.00615.98
7.1.230.0050.00515.92
7.1.220.0040.01115.82
7.1.210.0060.00916.14
7.1.200.0030.00815.91
7.1.190.0040.00715.61
7.1.180.0060.00316.04
7.1.170.0000.01116.14
7.1.160.0040.00415.89
7.1.150.0060.00915.87
7.1.140.0000.00915.88
7.1.130.0140.00015.95
7.1.120.0110.00315.91
7.1.110.0030.01016.15
7.1.100.0050.00616.09
7.1.90.0110.00415.96
7.1.80.0100.00615.86
7.1.70.0070.00616.55
7.1.60.0070.01217.77
7.1.50.0070.01016.53
7.1.40.0000.01915.83
7.1.30.0100.00715.78
7.1.20.0000.01415.66
7.1.10.0090.00415.73
7.1.00.0020.04419.13
7.0.330.0110.00415.41
7.0.320.0080.00315.74
7.0.310.0030.01015.43
7.0.300.0040.01115.52
7.0.290.0030.00815.60
7.0.280.0110.00415.57
7.0.270.0060.00315.22
7.0.260.0030.00915.66
7.0.250.0070.00715.62
7.0.240.0090.00915.64
7.0.230.0070.01015.77
7.0.220.0000.01815.33
7.0.210.0060.00815.55
7.0.200.0060.00515.14
7.0.190.0040.00715.55
7.0.180.0090.00615.66
7.0.170.0030.01015.55
7.0.160.0030.01015.62
7.0.150.0060.00915.84
7.0.140.0090.00315.48
7.0.130.0040.01115.36
7.0.120.0030.00515.57
7.0.110.0000.01415.71
7.0.100.0080.03817.92
7.0.90.0170.04817.87
7.0.80.0180.03317.65
7.0.70.0080.04217.60
7.0.60.0070.04917.69
7.0.50.0090.04418.06
7.0.40.0070.04116.68
7.0.30.0050.04416.98
7.0.20.0030.04716.94
7.0.10.0050.04316.85
7.0.00.0050.04516.81
5.6.400.0040.00714.14
5.6.390.0000.00914.24
5.6.380.0100.00314.50
5.6.370.0000.00914.00
5.6.360.0070.00714.68
5.6.350.0030.01414.22
5.6.340.0120.00314.73
5.6.330.0100.00713.84
5.6.320.0070.00714.30
5.6.310.0030.01214.31
5.6.300.0070.01014.18
5.6.290.0090.00614.32
5.6.280.0050.02517.71
5.6.270.0040.01114.34
5.6.260.0090.00614.33
5.6.250.0080.03617.55
5.6.240.0060.03117.49
5.6.230.0130.03817.38
5.6.220.0110.02817.40
5.6.210.0070.04417.55
5.6.200.0070.03917.69
5.6.190.0080.03817.55
5.6.180.0080.04417.72
5.6.170.0030.04817.62
5.6.160.0140.03717.69
5.6.150.0100.04217.56
5.6.140.0070.03517.54
5.6.130.0080.04517.63
5.6.120.0030.04417.66
5.6.110.0030.04317.67
5.6.100.0080.03717.70
5.6.90.0070.04717.74
5.6.80.0080.04017.21
5.6.70.0100.04217.38
5.6.60.0070.04517.47
5.6.50.0050.04017.27
5.6.40.0020.04217.43
5.6.30.0130.03517.31
5.6.20.0030.04517.32
5.6.10.0060.03617.12
5.6.00.0050.03817.37
5.5.380.0050.03817.37
5.5.370.0060.04817.32
5.5.360.0080.04417.49
5.5.350.0050.04417.43
5.5.340.0050.04717.63
5.5.330.0120.04017.42
5.5.320.0080.04617.64
5.5.310.0090.04017.68
5.5.300.0100.04217.62
5.5.290.0110.03817.46
5.5.280.0130.02617.52
5.5.270.0030.04417.47
5.5.260.0050.04617.49
5.5.250.0070.04517.31
5.5.240.0110.02417.19
5.5.230.0090.04017.20
5.5.220.0080.04117.35
5.5.210.0060.03317.18
5.5.200.0070.04417.02
5.5.190.0080.03917.16
5.5.180.0100.03517.30
5.5.170.0040.00714.30
5.5.160.0090.02517.37
5.5.150.0080.04117.28
5.5.140.0080.04317.13
5.5.130.0110.03017.29
5.5.120.0090.03517.16
5.5.110.0080.03817.30
5.5.100.0120.04017.09
5.5.90.0070.04217.22
5.5.80.0110.03517.19
5.5.70.0050.03817.07
5.5.60.0060.03717.21
5.5.50.0070.04017.02
5.5.40.0080.04017.13
5.5.30.0080.04017.20
5.5.20.0100.03717.10
5.5.10.0040.04417.20
5.5.00.0060.04817.07
5.4.450.0080.04015.28
5.4.440.0070.03915.20
5.4.430.0050.04215.26
5.4.420.0050.02615.11
5.4.410.0030.03815.09
5.4.400.0070.04214.95
5.4.390.0070.04214.94
5.4.380.0070.03914.94
5.4.370.0050.03914.99
5.4.360.0060.03515.04
5.4.350.0030.04315.16
5.4.340.0030.02314.87
5.4.330.0070.00310.91
5.4.320.0030.04515.00
5.4.310.0080.02615.05
5.4.300.0080.03215.02
5.4.290.0020.04814.85
5.4.280.0070.04014.91
5.4.270.0110.03515.00
5.4.260.0060.04015.05
5.4.250.0070.03615.14
5.4.240.0050.04415.17
5.4.230.0080.03314.95
5.4.220.0010.04415.00
5.4.210.0130.03214.96
5.4.200.0080.03615.13
5.4.190.0070.03614.75
5.4.180.0020.03514.95
5.4.170.0090.03715.00
5.4.160.0100.03815.04
5.4.150.0080.03915.12
5.4.140.0120.03013.85
5.4.130.0030.03913.70
5.4.120.0100.03313.75
5.4.110.0040.02513.55
5.4.100.0020.04613.63
5.4.90.0090.02113.58
5.4.80.0050.04413.49
5.4.70.0070.03813.76
5.4.60.0020.03713.69
5.4.50.0060.04013.51
5.4.40.0030.03813.63
5.4.30.0070.02113.71
5.4.20.0070.02713.69
5.4.10.0080.03713.47
5.4.00.0060.04013.38
5.3.290.0070.06314.68
5.3.280.0030.07314.59
5.3.270.0170.06714.60
5.3.260.0070.07714.56
5.3.250.0100.06714.45
5.3.240.0100.07314.57
5.3.230.0030.07714.58
5.3.220.0030.07314.58
5.3.210.0070.07314.54
5.3.200.0030.07314.55
5.3.190.0070.07014.57
5.3.180.0070.08314.38
5.3.170.0130.03714.57
5.3.160.0030.07014.52
5.3.150.0130.04314.56
5.3.140.0000.07714.49
5.3.130.0070.05314.55
5.3.120.0070.07314.41
5.3.110.0030.07014.55
5.3.100.0070.04314.02
5.3.90.0130.07013.89
5.3.80.0070.07313.88
5.3.70.0130.07014.00
5.3.60.0030.07714.01
5.3.50.0200.06013.81
5.3.40.0130.06313.90
5.3.30.0030.07013.87
5.3.20.0130.06713.55
5.3.10.0030.06313.66
5.3.00.0070.06713.42
5.2.170.0100.06312.17
5.2.160.0070.06012.17
5.2.150.0030.06712.17
5.2.140.0000.06712.17
5.2.130.0030.06312.17
5.2.120.0030.06012.17
5.2.110.0000.04012.17
5.2.100.0070.05712.17
5.2.90.0100.03712.17
5.2.80.0100.05712.17
5.2.70.0000.05312.17
5.2.60.0130.05312.17
5.2.50.0130.05312.17
5.2.40.0030.06012.17
5.2.30.0130.05712.17
5.2.20.0070.06312.17
5.2.10.0030.05312.17
5.2.00.0030.05712.17
5.1.60.0000.05312.17
5.1.50.0000.03012.17
5.1.40.0030.05312.17
5.1.30.0030.05712.17
5.1.20.0100.04712.17
5.1.10.0000.05012.17
5.1.00.0070.05312.17
5.0.50.0000.04712.17
5.0.40.0070.02012.17
5.0.30.0030.06312.17
5.0.20.0000.04712.17
5.0.10.0070.02712.17
5.0.00.0100.04712.17
4.4.90.0000.02312.17
4.4.80.0070.02312.17
4.4.70.0030.03712.17
4.4.60.0000.03712.17
4.4.50.0100.03012.17
4.4.40.0000.05312.17
4.4.30.0000.03712.17
4.4.20.0030.03712.17
4.4.10.0030.03312.17
4.4.00.0000.05712.17
4.3.110.0000.03712.17
4.3.100.0030.03312.17
4.3.90.0070.03012.17
4.3.80.0100.05012.17
4.3.70.0000.03312.17
4.3.60.0070.03312.17
4.3.50.0030.03312.17
4.3.40.0000.05312.17
4.3.30.0030.03012.17
4.3.20.0000.03312.17
4.3.10.0070.03012.17
4.3.00.0030.03312.17

preferences:
30.09 ms | 403 KiB | 5 Q