3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\b[Aa]ny\b/'; $str = 'Will *any* company do *any* job, (are there any)?'; If(preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0)){ //string contains word } // Print the entire match result var_dump($matches);

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.40.0140.00418.97
8.3.30.0110.00418.99
8.3.20.0040.00421.85
8.3.10.0040.00423.70
8.3.00.0050.00319.56
8.2.170.0080.00822.96
8.2.160.0110.00420.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00420.53
8.2.120.0000.00726.35
8.2.110.0090.00021.02
8.2.100.0070.00418.07
8.2.90.0030.00618.16
8.2.80.0030.00517.97
8.2.70.0050.00317.55
8.2.60.0050.00317.80
8.2.50.0000.00818.10
8.2.40.0040.00420.55
8.2.30.0090.00020.97
8.2.20.0050.00218.05
8.2.10.0050.00218.07
8.2.00.0040.00417.98
8.1.270.0040.00420.61
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0000.00922.04
8.1.230.0040.00822.67
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.50
8.1.190.0080.00017.25
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0000.00819.02
8.1.150.0030.00520.61
8.1.140.0000.00819.59
8.1.130.0000.00720.77
8.1.120.0040.00417.57
8.1.110.0040.00417.53
8.1.100.0070.00017.52
8.1.90.0040.00417.43
8.1.80.0070.00017.56
8.1.70.0030.00317.42
8.1.60.0000.00817.61
8.1.50.0040.00417.64
8.1.40.0030.00617.51
8.1.30.0000.00817.63
8.1.20.0030.00517.70
8.1.10.0040.00417.66
8.1.00.0080.00017.58
8.0.300.0070.00319.82
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0000.00717.27
8.0.260.0080.00018.84
8.0.250.0070.00016.94
8.0.240.0070.00016.96
8.0.230.0030.00317.00
8.0.220.0030.00317.03
8.0.210.0000.00816.89
8.0.200.0000.00716.94
8.0.190.0070.00316.92
8.0.180.0050.00516.89
8.0.170.0000.00716.96
8.0.160.0040.00416.98
8.0.150.0040.00416.88
8.0.140.0000.00716.81
8.0.130.0000.00813.35
8.0.120.0070.00016.99
8.0.110.0030.00316.95
8.0.100.0030.00516.86
8.0.90.0030.00516.83
8.0.80.0070.01117.02
8.0.70.0050.00317.00
8.0.60.0030.00517.00
8.0.50.0000.00716.99
8.0.30.0130.00617.06
8.0.20.0080.01217.41
8.0.10.0070.00017.15
8.0.00.0150.00316.81
7.4.330.0020.00215.55
7.4.320.0070.00016.56
7.4.300.0060.00016.71
7.4.290.0070.00016.79
7.4.280.0040.00416.77
7.4.270.0000.00716.80
7.4.260.0050.00316.69
7.4.250.0000.00916.74
7.4.240.0000.00716.73
7.4.230.0000.00716.59
7.4.220.0130.01316.75
7.4.210.0110.00416.90
7.4.200.0070.00016.80
7.4.160.0100.00616.72
7.4.150.0050.01517.40
7.4.140.0120.00917.86
7.4.130.0170.00816.63
7.4.120.0060.01216.63
7.4.110.0070.01016.64
7.4.100.0140.00416.56
7.4.90.0090.00916.64
7.4.80.0070.01019.39
7.4.70.0060.01116.75
7.4.60.0080.00816.46
7.4.50.0060.01016.50
7.4.40.0070.01516.49
7.4.30.0120.01216.65
7.4.10.0070.01315.16
7.4.00.0070.01114.94
7.3.330.0050.00013.04
7.3.320.0000.00813.21
7.3.310.0030.00516.13
7.3.300.0030.00616.30
7.3.290.0010.01316.29
7.3.280.0080.00816.25
7.3.270.0030.01417.40
7.3.260.0070.01216.50
7.3.250.0080.01016.35
7.3.240.0110.00816.31
7.3.230.0150.00416.21
7.3.210.0170.00416.54
7.3.200.0100.00716.49
7.3.190.0180.01616.30
7.3.180.0120.00416.55
7.3.170.0030.01416.26
7.3.160.0120.00316.59
7.3.130.0070.01014.61
7.3.120.0070.01114.63
7.3.110.0070.01015.05
7.3.100.0030.01215.03
7.3.90.0000.01014.80
7.3.80.0070.00714.98
7.3.70.0100.00314.91
7.3.60.0000.01414.94
7.3.50.0040.00714.80
7.3.40.0060.00614.79
7.3.30.0070.00714.93
7.3.20.0070.00716.61
7.3.10.0110.00416.63
7.3.00.0060.00616.69
7.2.330.0130.00416.41
7.2.320.0040.01816.59
7.2.310.0130.00616.55
7.2.300.0060.01016.48
7.2.290.0040.01416.58
7.2.260.0070.01015.12
7.2.250.0090.00615.17
7.2.240.0000.01514.92
7.2.230.0040.01114.90
7.2.220.0070.01015.05
7.2.210.0000.01614.91
7.2.200.0030.01015.07
7.2.190.0080.00415.02
7.2.180.0060.00914.89
7.2.170.0030.01014.77
7.2.160.0110.00414.83
7.2.150.0070.01016.91
7.2.140.0040.01117.00
7.2.130.0100.00316.77
7.2.120.0090.00316.75
7.2.110.0090.00916.86
7.2.100.0030.00716.69
7.2.90.0130.00316.93
7.2.80.0090.00617.16
7.2.70.0140.00017.11
7.2.60.0050.00916.83
7.2.50.0060.00816.83
7.2.40.0060.00916.84
7.2.30.0090.00317.04
7.2.20.0030.00616.86
7.2.10.0030.01316.75
7.2.00.0000.01016.86
7.1.330.0050.00815.62
7.1.320.0030.01015.83
7.1.310.0130.00315.88
7.1.300.0080.00815.59
7.1.290.0030.01015.70
7.1.280.0040.01215.66
7.1.270.0030.00715.54
7.1.260.0070.00715.98
7.1.250.0070.00315.84
7.1.240.0030.01215.98
7.1.230.0080.00415.72
7.1.220.0030.00915.77
7.1.210.0040.01216.01
7.1.200.0090.00515.95
7.1.190.0040.01115.91
7.1.180.0000.01016.08
7.1.170.0000.00815.66
7.1.160.0000.01315.76
7.1.150.0040.00815.79
7.1.140.0040.00715.86
7.1.130.0070.00715.60
7.1.120.0090.00615.92
7.1.110.0060.00915.99
7.1.100.0090.00616.01
7.1.90.0000.01415.94
7.1.80.0090.00615.70
7.1.70.0050.00916.44
7.1.60.0620.01224.79
7.1.50.0470.01324.23
7.1.40.0530.01224.41
7.1.30.0670.01324.40
7.1.20.0470.01224.35
7.1.10.0420.00815.49
7.1.00.0390.00815.47
7.0.330.0110.00415.46
7.0.320.0090.00015.47
7.0.310.0030.00615.48
7.0.300.0060.00615.71
7.0.290.0090.00615.55
7.0.280.0070.00715.58
7.0.270.0100.00315.61
7.0.260.0000.01615.57
7.0.250.0030.00915.53
7.0.240.0070.00715.39
7.0.230.0090.00315.54
7.0.220.0060.00315.33
7.0.210.0050.00515.38
7.0.200.0530.01315.36
7.0.190.0540.01015.27
7.0.180.0350.01014.92
7.0.170.0630.00614.97
7.0.160.0420.01314.95
7.0.150.0460.00815.14
7.0.140.0320.01414.97
7.0.130.0370.01215.11
7.0.120.0550.00715.23
7.0.110.0450.01114.99
7.0.100.0850.01215.16
7.0.90.0480.01214.93
7.0.80.0400.01015.15
7.0.70.0350.00915.02
7.0.60.0270.01014.95
7.0.50.0530.00714.99
7.0.40.0400.01314.23
7.0.30.0600.01314.20
7.0.20.0490.01114.24
7.0.10.0440.01014.08
7.0.00.0410.00614.12
5.6.400.0070.00714.17
5.6.390.0070.00714.21
5.6.380.0000.01414.32
5.6.370.0000.01414.56
5.6.360.0100.00313.84
5.6.350.0070.01014.03
5.6.340.0050.00514.32
5.6.330.0040.01114.39
5.6.320.0140.00414.05
5.6.310.0100.00314.59
5.6.300.0040.01514.17
5.6.290.0120.00314.16
5.6.280.0090.00614.24
5.6.270.0080.00414.36
5.6.260.0040.01114.38
5.6.250.0080.00814.58
5.6.240.0110.00414.35
5.6.230.0080.00414.13
5.6.220.0030.00714.30
5.6.210.0030.01014.19
5.6.200.0100.00714.35
5.6.190.0030.01014.42
5.6.180.0070.00714.16
5.6.170.0090.00314.37
5.6.160.0050.00514.20
5.6.150.0060.00914.60
5.6.140.0120.00314.56
5.6.130.0060.01014.49
5.6.120.0070.00714.12
5.6.110.0030.01014.26
5.6.100.0060.00314.46
5.6.90.0080.00614.49
5.6.80.0140.00314.15
5.6.70.0120.00314.31
5.6.60.0060.00914.46
5.6.50.0070.00714.51
5.6.40.0090.00614.20
5.6.30.0030.00914.48
5.6.20.0000.01314.31
5.6.10.0070.00714.22
5.6.00.0000.00814.21

preferences:
60.31 ms | 400 KiB | 5 Q