3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\b[Aa]ny\b/'; $str = 'Company any any. 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.60.0090.00616.63
8.3.50.0070.00718.18
8.3.40.0110.00418.84
8.3.30.0070.00718.75
8.3.20.0040.00421.77
8.3.10.0000.00723.54
8.3.00.0040.00419.44
8.2.180.0060.01616.38
8.2.170.0090.00622.96
8.2.160.0140.00020.53
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00720.35
8.2.120.0040.00426.35
8.2.110.0040.00422.38
8.2.100.0060.00617.77
8.2.90.0070.00319.23
8.2.80.0050.00317.97
8.2.70.0040.00417.75
8.2.60.0060.00317.80
8.2.50.0060.00318.10
8.2.40.0030.00620.30
8.2.30.0050.00320.96
8.2.20.0050.00217.95
8.2.10.0040.00417.98
8.2.00.0070.00018.13
8.1.280.0170.00325.92
8.1.270.0040.00420.64
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.92
8.1.230.0110.00022.13
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0080.00417.23
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0030.00518.66
8.1.160.0000.00719.12
8.1.150.0060.00320.70
8.1.140.0080.00019.61
8.1.130.0020.00519.38
8.1.120.0040.00417.58
8.1.110.0040.00417.56
8.1.100.0080.00017.43
8.1.90.0040.00417.57
8.1.80.0030.00617.52
8.1.70.0000.00717.55
8.1.60.0040.00417.70
8.1.50.0040.00417.49
8.1.40.0000.00817.61
8.1.30.0000.00817.73
8.1.20.0050.00317.72
8.1.10.0040.00417.55
8.1.00.0000.00817.43
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.25
8.0.270.0040.00417.11
8.0.260.0030.00316.95
8.0.250.0030.00316.93
8.0.240.0070.00016.99
8.0.230.0000.00716.93
8.0.220.0070.00016.98
8.0.210.0000.00717.05
8.0.200.0080.00017.01
8.0.190.0060.00616.89
8.0.180.0040.00516.94
8.0.170.0000.00716.98
8.0.160.0040.00416.87
8.0.150.0080.00016.91
8.0.140.0040.00416.94
8.0.130.0000.00513.32
8.0.120.0000.00717.00
8.0.110.0000.00717.05
8.0.100.0000.00716.90
8.0.90.0000.00717.03
8.0.80.0030.01216.99
8.0.70.0040.00416.88
8.0.60.0040.00416.83
8.0.50.0030.00516.97
8.0.30.0080.01117.11
8.0.20.0130.00817.40
8.0.10.0040.00317.00
8.0.00.0090.00916.82
7.4.330.0000.00515.55
7.4.320.0040.00416.77
7.4.300.0030.00316.69
7.4.290.0070.00016.80
7.4.280.0030.00616.71
7.4.270.0000.00716.71
7.4.260.0000.00716.61
7.4.250.0070.00016.70
7.4.240.0030.00316.76
7.4.230.0000.00716.70
7.4.220.0130.01316.57
7.4.210.0170.00316.70
7.4.200.0030.00316.89
7.4.160.0130.00416.65
7.4.150.0090.00917.40
7.4.140.0140.00817.86
7.4.130.0200.00316.67
7.4.120.0100.01116.67
7.4.110.0060.01116.36
7.4.100.0040.01816.65
7.4.90.0090.00816.72
7.4.80.0140.00319.39
7.4.70.0070.01016.47
7.4.60.0120.00316.64
7.4.50.0060.00916.41
7.4.40.0100.00616.50
7.4.30.0120.00916.51
7.4.00.0080.00914.91
7.3.330.0060.00013.06
7.3.320.0030.00313.20
7.3.310.0080.00016.34
7.3.300.0000.00816.16
7.3.290.0060.00916.29
7.3.280.0050.01516.33
7.3.270.0080.00917.40
7.3.260.0070.01116.41
7.3.250.0110.00716.41
7.3.240.0080.00816.26
7.3.230.0110.00916.33
7.3.210.0040.01216.45
7.3.200.0090.00616.62
7.3.190.0050.01416.48
7.3.180.0120.00416.64
7.3.170.0120.00416.63
7.3.160.0090.00616.27
7.3.120.0120.00614.93
7.3.110.0100.00714.96
7.3.100.0110.00515.04
7.3.90.0060.00514.91
7.3.80.0020.01215.11
7.3.70.0080.00314.79
7.3.60.0060.00914.73
7.3.50.0080.00514.57
7.3.40.0070.00414.79
7.3.30.0050.00914.88
7.3.20.0080.00416.69
7.3.10.0040.00916.66
7.3.00.0040.01116.62
7.2.330.0060.01016.66
7.2.320.0170.00016.49
7.2.310.0160.00316.59
7.2.300.0130.00316.57
7.2.290.0090.00916.79
7.2.250.0080.01015.04
7.2.240.0080.01114.95
7.2.230.0060.01015.07
7.2.220.0050.00714.98
7.2.210.0030.01314.98
7.2.200.0080.00615.01
7.2.190.0030.01014.97
7.2.180.0050.00814.92
7.2.170.0060.00715.09
7.2.130.0000.01316.66
7.2.120.0080.00616.61
7.2.110.0050.00516.64
7.2.100.0110.00316.58
7.2.90.0030.00616.64
7.2.80.0040.00716.67
7.2.70.0040.01116.63
7.2.60.0040.01116.39
7.2.50.0040.01316.66
7.2.40.0180.00616.52
7.2.30.0070.01016.85
7.2.20.0080.00816.45
7.2.10.0120.00616.72
7.2.00.0060.01016.88
7.1.330.0060.00815.88
7.1.320.0060.00615.91
7.1.310.0020.01315.81
7.1.300.0070.00715.89
7.1.290.0010.01015.90
7.1.280.0030.00715.81
7.1.270.0050.00615.75
7.1.260.0050.00615.98
7.1.250.0070.00715.98
7.1.70.0000.01017.41
7.1.60.1100.02033.50
7.1.50.0800.01033.04
7.1.40.0730.01032.73
7.1.30.0900.01732.71
7.1.20.0600.02032.93
7.1.10.0500.01314.96
7.1.00.0530.01314.96
7.0.200.0870.01715.16
7.0.190.0730.01314.93
7.0.180.0830.00714.71
7.0.170.0770.01014.60
7.0.160.1300.01014.30
7.0.150.0400.01314.45
7.0.140.0700.01014.71
7.0.130.0470.01014.56
7.0.120.0470.01014.82
7.0.110.0830.01714.71
7.0.100.0830.01314.34
7.0.90.0630.01014.57
7.0.80.0530.01014.59
7.0.70.0830.01014.76
7.0.60.0370.01314.25
7.0.50.0400.01314.46
7.0.40.0600.00714.82
7.0.30.0770.01014.74
7.0.20.0930.01014.78
7.0.10.0530.00714.60
7.0.00.0470.01014.66

preferences:
35.79 ms | 400 KiB | 5 Q