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.0100.01016.75
8.3.50.0080.00816.74
8.3.40.0040.01118.78
8.3.30.0040.01118.84
8.3.20.0040.00421.85
8.3.10.0070.00321.66
8.3.00.0030.00519.56
8.2.180.0150.00016.75
8.2.170.0120.00322.96
8.2.160.0090.00619.41
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.01021.16
8.2.110.0030.00619.16
8.2.100.0040.00718.03
8.2.90.0040.00419.21
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0030.00519.89
8.2.50.0030.00618.10
8.2.40.0080.00020.42
8.2.30.0020.00519.22
8.2.20.0040.00418.05
8.2.10.0050.00318.04
8.2.00.0050.00218.15
8.1.280.0170.00025.92
8.1.270.0000.00824.04
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0100.00023.77
8.1.230.0040.00719.15
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0090.00017.48
8.1.190.0030.00517.35
8.1.180.0050.00318.10
8.1.170.0040.00418.69
8.1.160.0000.00718.92
8.1.150.0040.00418.92
8.1.140.0000.00719.67
8.1.130.0040.00418.87
8.1.120.0000.00717.68
8.1.110.0000.00817.58
8.1.100.0030.00517.58
8.1.90.0000.00817.62
8.1.80.0040.00417.64
8.1.70.0000.00817.70
8.1.60.0040.00417.75
8.1.50.0000.00817.60
8.1.40.0040.00717.58
8.1.30.0060.00317.74
8.1.20.0040.00417.71
8.1.10.0000.01117.69
8.1.00.0030.00517.48
8.0.300.0000.00718.77
8.0.290.0000.00816.88
8.0.280.0070.00018.51
8.0.270.0000.00817.27
8.0.260.0030.00319.04
8.0.250.0070.00017.10
8.0.240.0030.00717.11
8.0.230.0070.00017.16
8.0.220.0000.00717.03
8.0.210.0040.00417.04
8.0.200.0060.00017.13
8.0.190.0030.00617.07
8.0.180.0000.00817.08
8.0.170.0070.00017.12
8.0.160.0000.00717.02
8.0.150.0040.00417.05
8.0.140.0000.00716.98
8.0.130.0070.00013.46
8.0.120.0050.00317.04
8.0.110.0000.00717.09
8.0.100.0000.00916.93
8.0.90.0040.00416.97
8.0.80.0090.01317.04
8.0.70.0000.00716.94
8.0.60.0000.00716.84
8.0.50.0080.00016.99
8.0.30.0110.00817.06
8.0.20.0100.01117.40
8.0.10.0040.00416.99
8.0.00.0060.01216.83
7.4.330.0000.00515.55
7.4.320.0070.00016.75
7.4.300.0000.00616.58
7.4.290.0080.00016.72
7.4.280.0040.00416.69
7.4.270.0000.00816.74
7.4.260.0070.00016.71
7.4.250.0000.00716.77
7.4.240.0080.00016.77
7.4.230.0070.00016.54
7.4.220.0100.01716.77
7.4.210.0080.00916.71
7.4.200.0030.00316.83
7.4.160.0120.00416.78
7.4.150.0060.01117.40
7.4.140.0080.01117.86
7.4.130.0100.01316.76
7.4.120.0130.01116.63
7.4.110.0110.00916.67
7.4.100.0100.00716.64
7.4.90.0130.00716.75
7.4.80.0140.00319.39
7.4.70.0080.00816.67
7.4.60.0060.01016.55
7.4.50.0050.01516.69
7.4.40.0090.00616.73
7.4.30.0100.00716.48
7.4.00.0090.00715.18
7.3.330.0060.00013.25
7.3.320.0000.00513.16
7.3.310.0000.00716.56
7.3.300.0030.00316.16
7.3.290.0040.00416.46
7.3.280.0090.00916.42
7.3.270.0120.00617.40
7.3.260.0070.01016.86
7.3.250.0090.00916.54
7.3.240.0090.01116.61
7.3.230.0110.00816.39
7.3.210.0110.00616.69
7.3.200.0090.00916.43
7.3.190.0090.00616.54
7.3.180.0140.00616.73
7.3.170.0130.01016.53
7.3.160.0030.01316.55
7.3.120.0100.00715.09
7.3.110.0120.00315.12
7.3.100.0000.01214.98
7.3.90.0030.01614.95
7.3.80.0060.01014.97
7.3.70.0060.00914.76
7.3.60.0070.00715.04
7.3.50.0030.00915.10
7.3.40.0030.01315.09
7.3.30.0100.00315.00
7.3.20.0030.01016.95
7.3.10.0100.00316.90
7.3.00.0070.00716.89
7.2.330.0040.01316.73
7.2.320.0120.00616.79
7.2.310.0060.01216.75
7.2.300.0030.01516.56
7.2.290.0070.01116.92
7.2.250.0070.01415.28
7.2.240.0130.00614.85
7.2.230.0040.01214.88
7.2.220.0030.01715.26
7.2.210.0120.00315.33
7.2.200.0110.00415.16
7.2.190.0100.00714.97
7.2.180.0070.00715.21
7.2.170.0030.01315.09
7.2.110.0040.01116.80
7.2.60.0080.00817.14
7.1.330.0110.00415.84
7.1.320.0060.01316.05
7.1.310.0030.00916.19
7.1.300.0070.00715.91
7.1.290.0090.00616.05
7.1.280.0060.00915.95
7.1.270.0000.01416.04
7.1.260.0070.00415.75
7.1.200.0000.01015.90
7.1.70.0250.00017.40
7.1.60.0030.00917.37
7.1.50.0200.01334.73
7.1.40.0170.00734.47
7.1.30.0130.01734.51
7.1.20.0370.01734.59
7.1.10.0200.01016.55
7.1.00.0170.01016.68
7.0.200.0040.01116.69
7.0.190.0100.00716.93
7.0.180.0000.01316.28
7.0.170.0000.01716.26
7.0.160.0270.00716.32
7.0.150.0230.00716.32
7.0.140.0100.01716.43
7.0.130.0200.01316.53
7.0.120.0200.00716.57
7.0.110.0330.00716.36
7.0.100.0170.01016.29
7.0.90.0170.01016.39
7.0.80.0170.01016.32
7.0.70.0130.01016.36
7.0.60.0170.00716.31
7.0.50.0200.01016.28
7.0.40.0170.00716.58
7.0.30.0170.01016.57
7.0.20.0130.01316.53
7.0.10.0200.00716.45
7.0.00.0170.00016.49

preferences:
67.32 ms | 401 KiB | 5 Q