3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strNonNumeric = '?ct=123'; $string = "456"; if (preg_match("/^\?ct\=(\d+\-?)+$|^\?ct\=\d+$/i", $strNonNumeric)) { echo "true";}; if (preg_match('/\b(?:' . $string . ')\b/i', $strNonNumeric)) {echo "whole word";};

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.00816.50
8.3.50.0110.00416.50
8.3.40.0120.00318.70
8.3.30.0070.00718.95
8.3.20.0070.00021.96
8.3.10.0080.00021.91
8.3.00.0040.00419.66
8.2.180.0150.00616.60
8.2.170.0040.01122.96
8.2.160.0000.01419.26
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00422.25
8.2.120.0070.00026.35
8.2.110.0080.00020.55
8.2.100.0090.00317.91
8.2.90.0000.00819.09
8.2.80.0060.00319.40
8.2.70.0050.00417.88
8.2.60.0030.00519.79
8.2.50.0080.00018.10
8.2.40.0040.00420.55
8.2.30.0040.00419.32
8.2.20.0000.00717.97
8.2.10.0000.00817.97
8.2.00.0040.00418.00
8.1.280.0140.00725.92
8.1.270.0050.00323.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0130.01019.15
8.1.230.0120.00019.14
8.1.220.0000.00917.80
8.1.210.0040.00418.77
8.1.200.0050.00517.47
8.1.190.0070.00417.35
8.1.180.0000.00818.10
8.1.170.0000.00918.74
8.1.160.0020.00518.91
8.1.150.0040.00418.83
8.1.140.0050.00219.52
8.1.130.0040.00418.92
8.1.120.0080.00017.61
8.1.110.0040.00417.62
8.1.100.0080.00017.55
8.1.90.0040.00417.58
8.1.80.0040.00417.62
8.1.70.0000.00917.52
8.1.60.0030.00617.74
8.1.50.0040.00417.68
8.1.40.0040.00717.62
8.1.30.0060.00317.77
8.1.20.0000.00817.85
8.1.10.0000.00917.68
8.1.00.0000.00817.58
8.0.300.0000.00718.77
8.0.290.0030.00616.88
8.0.280.0030.00318.39
8.0.270.0000.00816.97
8.0.260.0030.00319.01
8.0.250.0000.00717.07
8.0.240.0070.00417.09
8.0.230.0030.00317.20
8.0.220.0030.00317.09
8.0.210.0000.00717.01
8.0.200.0070.00017.06
8.0.190.0050.00317.16
8.0.180.0040.00417.11
8.0.170.0050.00217.12
8.0.160.0040.00417.04
8.0.150.0040.00417.00
8.0.140.0030.00516.86
8.0.130.0050.00013.46
8.0.120.0040.00416.91
8.0.110.0040.00416.86
8.0.100.0030.00617.10
8.0.90.0030.00517.08
8.0.80.0100.00616.94
8.0.70.0000.00716.91
8.0.60.0040.00416.89
8.0.50.0000.00816.96
8.0.30.0060.01117.26
8.0.20.0090.01017.43
8.0.10.0000.00716.95
8.0.00.0070.01017.05
7.4.330.0050.00015.55
7.4.320.0000.00616.80
7.4.300.0000.00616.72
7.4.290.0070.00016.75
7.4.280.0000.00816.63
7.4.270.0040.00416.75
7.4.260.0050.00316.64
7.4.250.0000.00716.48
7.4.240.0040.00416.67
7.4.230.0000.00816.57
7.4.220.0090.01616.78
7.4.210.0040.01216.73
7.4.200.0050.00216.84
7.4.160.0060.01116.72
7.4.150.0030.01417.40
7.4.140.0070.01417.86
7.4.130.0090.00916.59
7.4.120.0120.01016.66
7.4.110.0070.01116.51
7.4.100.0130.00516.67
7.4.90.0100.00716.57
7.4.80.0080.00819.39
7.4.70.0070.01016.63
7.4.60.0040.01216.58
7.4.50.0070.01016.66
7.4.40.0000.01616.67
7.4.30.0090.00916.46
7.4.10.0030.01615.14
7.4.00.0050.01114.98
7.3.330.0060.00013.14
7.3.320.0030.00313.33
7.3.310.0070.00016.26
7.3.300.0070.00016.43
7.3.290.0000.00716.47
7.3.280.0080.01016.40
7.3.270.0140.00917.40
7.3.260.0110.00716.50
7.3.250.0130.00816.54
7.3.240.0060.01116.61
7.3.230.0090.01016.42
7.3.210.0100.00616.73
7.3.200.0100.00616.42
7.3.190.0110.01116.58
7.3.180.0100.01216.45
7.3.170.0080.00816.70
7.3.160.0050.01116.59
7.3.130.0070.01015.29
7.3.120.0080.00814.92
7.3.110.0070.01114.49
7.3.100.0090.00615.14
7.3.90.0090.00614.84
7.3.80.0060.01215.03
7.3.70.0040.01114.97
7.3.60.0100.00714.93
7.3.50.0120.00615.09
7.3.40.0000.01415.04
7.3.30.0000.01415.15
7.3.20.0030.01016.96
7.3.10.0110.00316.63
7.3.00.0060.00916.82
7.2.330.0110.01116.71
7.2.320.0170.00716.70
7.2.310.0070.01716.77
7.2.300.0120.00916.56
7.2.290.0130.00316.70
7.2.260.0100.00615.24
7.2.250.0090.01015.21
7.2.240.0100.00615.14
7.2.230.0030.00715.32
7.2.220.0090.00615.13
7.2.210.0090.00315.16
7.2.200.0120.00415.32
7.2.190.0060.00915.06
7.2.180.0050.00815.06
7.2.170.0040.01114.97
7.2.160.0000.01514.94
7.2.150.0120.00316.81
7.2.140.0100.00316.72
7.2.130.0030.01317.10
7.2.120.0060.00617.11
7.2.110.0070.00317.04
7.2.100.0000.01816.90
7.2.90.0000.01217.02
7.2.80.0000.01316.94
7.2.70.0090.00917.25
7.2.60.0040.01016.99
7.2.50.0070.01016.81
7.2.40.0040.01117.02
7.2.30.0000.01417.18
7.2.20.0050.00517.06
7.2.10.0000.01117.04
7.2.00.0060.01216.72
7.1.330.0070.00715.98
7.1.320.0060.01215.77
7.1.310.0070.00715.73
7.1.300.0080.00515.89
7.1.290.0030.01015.81
7.1.280.0000.01416.05
7.1.270.0070.00716.10
7.1.260.0040.01215.97
7.1.250.0060.00615.77
7.1.240.0000.01616.04
7.1.230.0060.00615.91
7.1.220.0030.01415.86
7.1.210.0070.01016.02
7.1.200.0030.00715.87
7.1.190.0070.01016.01
7.1.180.0140.00016.04
7.1.170.0040.00815.82
7.1.160.0040.01215.97
7.1.150.0070.00716.11
7.1.140.0090.00615.71
7.1.130.0110.00416.16
7.1.120.0090.00615.85
7.1.110.0070.00716.01
7.1.100.0000.01315.93
7.1.90.0100.00716.07
7.1.80.0140.00415.97
7.1.70.0020.01216.62
7.1.60.0040.00716.53
7.1.50.0250.01224.63
7.1.40.0260.00524.25
7.1.30.0380.01024.31
7.1.20.0200.01324.49
7.1.10.0150.00715.33
7.1.00.0130.01215.46
7.0.330.0080.00315.71
7.0.320.0070.00415.43
7.0.310.0060.01015.42
7.0.300.0040.00415.69
7.0.290.0030.01015.12
7.0.280.0060.00915.75
7.0.270.0150.00015.62
7.0.260.0060.01015.71
7.0.250.0000.00815.37
7.0.240.0030.00915.43
7.0.230.0000.01315.16
7.0.220.0070.00715.77
7.0.210.0100.00715.50
7.0.200.0050.01016.19
7.0.190.0210.00715.34
7.0.180.0220.00915.04
7.0.170.0240.00514.92
7.0.160.0250.00515.17
7.0.150.0080.01314.98
7.0.140.0180.00115.09
7.0.130.0120.00815.21
7.0.120.0140.00915.35
7.0.110.0170.01015.11
7.0.100.0330.00815.05
7.0.90.0130.00815.20
7.0.80.0110.01015.19
7.0.70.0180.00815.11
7.0.60.0180.01015.16
7.0.50.0170.01015.20
7.0.40.0130.01014.25
7.0.30.0180.01014.07
7.0.20.0210.00514.14
7.0.10.0200.00714.22
7.0.00.0130.01414.19
5.6.400.0070.00714.63
5.6.390.0040.00714.49
5.6.380.0030.01014.68
5.6.370.0040.00414.29
5.6.360.0040.00414.31
5.6.350.0080.00714.46
5.6.340.0040.01114.55
5.6.330.0040.01414.43
5.6.320.0000.01414.55
5.6.310.0030.01014.40
5.6.300.0040.01214.42
5.6.290.0030.01014.70
5.6.280.0060.00814.57
5.6.270.0000.00814.36
5.6.260.0050.00314.51
5.6.250.0000.00814.59
5.6.240.0070.00714.54
5.6.230.0050.00514.58
5.6.220.0060.00614.41
5.6.210.0060.00614.41
5.6.200.0040.00714.30
5.6.190.0030.00914.20
5.6.180.0030.00614.55
5.6.170.0060.01014.38
5.6.160.0000.01714.62
5.6.150.0000.01314.76
5.6.140.0030.01314.26
5.6.130.0080.00814.64
5.6.120.0090.00614.51
5.6.110.0060.00914.08
5.6.100.0060.00714.41
5.6.90.0060.00614.22
5.6.80.0060.00614.48
5.6.70.0070.00714.32
5.6.60.0070.00714.25
5.6.50.0050.00514.59
5.6.40.0060.00814.45
5.6.30.0090.00414.27
5.6.20.0070.00714.50
5.6.10.0100.00714.42
5.6.00.0080.00014.26

preferences:
58.42 ms | 400 KiB | 5 Q