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)){ //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.0080.00816.63
8.3.50.0070.00718.05
8.3.40.0070.01118.92
8.3.30.0110.00418.66
8.3.20.0000.00721.90
8.3.10.0040.00423.66
8.3.00.0080.00017.93
8.2.180.0120.00816.75
8.2.170.0070.00722.96
8.2.160.0070.00720.30
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.53
8.2.120.0070.00026.35
8.2.110.0090.00022.29
8.2.100.0100.00317.97
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0030.00517.80
8.2.50.0040.00418.10
8.2.40.0040.00420.54
8.2.30.0040.00421.12
8.2.20.0050.00217.98
8.2.10.0030.00518.15
8.2.00.0040.00418.14
8.1.280.0160.00625.92
8.1.270.0040.00420.58
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0110.00022.27
8.1.220.0000.00817.80
8.1.210.0070.00318.77
8.1.200.0030.00717.34
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0040.00418.56
8.1.160.0000.00719.10
8.1.150.0050.00320.57
8.1.140.0040.00419.51
8.1.130.0000.00720.61
8.1.120.0020.00517.44
8.1.110.0000.00717.50
8.1.100.0070.00017.55
8.1.90.0040.00417.57
8.1.80.0070.00017.55
8.1.70.0000.00717.52
8.1.60.0050.00317.55
8.1.50.0040.00417.54
8.1.40.0000.00817.50
8.1.30.0000.00717.57
8.1.20.0000.00817.63
8.1.10.0080.00017.62
8.1.00.0040.00417.48
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.27
8.0.270.0070.00017.21
8.0.260.0040.00418.92
8.0.250.0040.00317.05
8.0.240.0070.00017.00
8.0.230.0000.00716.96
8.0.220.0080.00017.04
8.0.210.0030.00317.05
8.0.200.0030.00317.09
8.0.190.0110.00016.96
8.0.180.0000.00816.94
8.0.170.0000.00716.95
8.0.160.0040.00417.00
8.0.150.0040.00416.84
8.0.140.0000.00716.80
8.0.130.0050.00013.36
8.0.120.0080.00016.96
8.0.110.0000.00817.04
8.0.100.0040.00416.98
8.0.90.0030.00616.92
8.0.80.0080.00817.09
8.0.70.0030.00517.04
8.0.60.0040.00416.99
8.0.50.0040.00416.93
8.0.30.0130.00517.05
8.0.20.0110.00817.40
8.0.10.0000.00717.04
8.0.00.0130.00416.75
7.4.330.0000.00515.55
7.4.320.0000.00716.69
7.4.300.0030.00316.60
7.4.290.0030.00316.71
7.4.280.0050.00316.80
7.4.270.0070.00016.69
7.4.260.0000.00716.68
7.4.250.0040.00416.68
7.4.240.0070.00016.70
7.4.230.0000.00716.92
7.4.220.0140.01116.68
7.4.210.0090.00616.83
7.4.200.0040.00416.60
7.4.160.0120.00716.66
7.4.150.0140.00517.40
7.4.140.0090.01317.86
7.4.130.0040.01616.65
7.4.120.0120.01016.65
7.4.110.0080.01116.66
7.4.100.0150.00616.69
7.4.90.0030.01516.52
7.4.80.0070.01119.39
7.4.70.0110.01116.54
7.4.60.0090.00616.74
7.4.50.0070.00716.40
7.4.40.0100.00616.53
7.4.30.0090.01516.79
7.4.00.0030.01015.06
7.3.330.0060.00013.20
7.3.320.0030.00313.05
7.3.310.0030.00516.22
7.3.300.0040.00416.26
7.3.290.0070.00616.25
7.3.280.0060.01116.30
7.3.270.0080.00817.40
7.3.260.0080.01116.34
7.3.250.0090.00816.20
7.3.240.0070.01216.31
7.3.230.0140.00516.62
7.3.210.0110.00616.53
7.3.200.0060.01816.31
7.3.190.0110.00816.39
7.3.180.0120.00316.25
7.3.170.0040.01216.38
7.3.160.0060.00916.32
7.2.330.0130.00316.62
7.2.320.0090.00916.54
7.2.310.0130.01016.73
7.2.300.0120.00616.61
7.2.290.0100.00616.55
7.2.60.0040.00816.75
7.2.00.0090.00319.42
7.1.200.0040.00415.96
7.1.100.0000.01118.25
7.1.70.0000.01017.40
7.1.60.1000.02033.38
7.1.50.1100.01733.18
7.1.40.0870.01732.73
7.1.30.1130.02032.88
7.1.20.0730.01733.17
7.1.10.0930.01314.96
7.1.00.0770.01015.28
7.0.200.1100.01015.15
7.0.190.1100.01714.96
7.0.180.1000.00714.50
7.0.170.1370.01014.73
7.0.160.1230.01314.50
7.0.150.0770.01714.60
7.0.140.0700.01314.79
7.0.130.0630.01014.72
7.0.120.0670.02014.88
7.0.110.1300.01014.59
7.0.100.0570.01314.65
7.0.90.0570.01714.88
7.0.80.0930.00314.43
7.0.70.0770.01314.49
7.0.60.0570.01014.61
7.0.50.1200.01014.74
7.0.40.1530.01014.71
7.0.30.0530.01714.72
7.0.20.0870.00714.52
7.0.10.0770.01014.93
7.0.00.0700.01314.67

preferences:
56.74 ms | 401 KiB | 5 Q