3v4l.org

run code in 300+ PHP versions simultaneously
<?php $needle = 'www'; $sentence = 'This www.google.com is the http://www.facebook.com website that https://www.amazon.com make me awesome'; if(preg_match('/\b(' . preg_quote($needle, '/') . '\w+)/', $sentence, $match)){ echo "<pre>"; print_r($match[0]); echo "</pre>"; }

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.0110.00718.30
8.3.50.0120.00316.52
8.3.40.0070.00718.96
8.3.30.0040.01118.79
8.3.20.0000.00820.46
8.3.10.0000.00822.13
8.3.00.0080.00023.37
8.2.180.0120.00918.25
8.2.170.0070.01422.96
8.2.160.0150.00019.42
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00721.07
8.2.120.0040.00426.35
8.2.110.0000.01020.36
8.2.100.0040.00817.84
8.2.90.0050.00319.23
8.2.80.0050.00319.16
8.2.70.0040.00417.63
8.2.60.0040.00417.92
8.2.50.0050.00218.16
8.2.40.0000.00720.47
8.2.30.0040.00419.29
8.2.20.0040.00418.05
8.2.10.0040.00418.04
8.2.00.0000.00718.15
8.1.280.0140.00725.92
8.1.270.0050.00322.25
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.84
8.1.230.0070.00419.48
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00317.48
8.1.190.0040.00417.25
8.1.180.0080.00018.10
8.1.170.0060.00318.56
8.1.160.0040.00418.93
8.1.150.0030.00620.09
8.1.140.0040.00419.65
8.1.130.0070.00018.89
8.1.120.0040.00417.56
8.1.110.0080.00017.65
8.1.100.0040.00417.70
8.1.90.0000.00717.62
8.1.80.0000.00817.59
8.1.70.0070.00017.53
8.1.60.0030.00617.63
8.1.50.0040.00517.75
8.1.40.0000.00817.73
8.1.30.0060.00317.68
8.1.20.0000.00817.71
8.1.10.0040.00417.67
8.1.00.0030.00617.46
8.0.300.0000.00718.77
8.0.290.0070.00016.88
8.0.280.0000.00718.48
8.0.270.0000.00817.34
8.0.260.0000.00818.89
8.0.250.0030.00317.10
8.0.240.0040.00417.03
8.0.230.0060.00317.07
8.0.220.0000.00717.02
8.0.210.0030.00317.00
8.0.200.0030.00316.99
8.0.190.0030.00616.98
8.0.180.0070.00017.07
8.0.170.0040.00417.10
8.0.160.0000.00716.94
8.0.150.0090.00016.90
8.0.140.0030.00516.90
8.0.130.0030.00313.49
8.0.120.0080.00017.02
8.0.110.0040.00416.89
8.0.100.0000.00817.04
8.0.90.0000.00716.94
8.0.80.0120.00917.01
8.0.70.0040.00416.86
8.0.60.0040.00416.79
8.0.50.0040.00417.10
8.0.30.0110.00517.25
8.0.20.0110.00817.40
8.0.10.0000.00716.97
8.0.00.0030.01616.82
7.4.330.0000.00515.55
7.4.320.0040.00416.79
7.4.300.0050.00216.62
7.4.290.0030.00316.55
7.4.280.0060.00316.76
7.4.270.0070.00016.77
7.4.260.0070.00016.66
7.4.250.0040.00416.64
7.4.240.0030.00416.81
7.4.230.0030.00316.66
7.4.220.0130.00716.80
7.4.210.0120.00716.79
7.4.200.0000.00716.65
7.4.160.0110.00516.56
7.4.150.0140.01017.40
7.4.140.0120.00717.86
7.4.130.0140.00316.73
7.4.120.0100.00916.68
7.4.110.0130.01016.59
7.4.100.0000.01816.49
7.4.90.0060.01616.68
7.4.80.0000.01719.39
7.4.70.0070.01416.60
7.4.60.0070.01016.77
7.4.50.0070.01016.64
7.4.40.0130.01016.58
7.4.30.0130.01016.57
7.4.00.0090.00714.94
7.3.330.0050.00013.23
7.3.320.0050.00013.22
7.3.310.0000.00716.30
7.3.300.0000.00716.35
7.3.290.0070.00816.34
7.3.280.0080.00816.36
7.3.270.0080.01617.40
7.3.260.0130.00516.45
7.3.250.0110.00816.55
7.3.240.0080.00816.53
7.3.230.0030.01916.37
7.3.210.0130.00316.32
7.3.200.0030.01716.75
7.3.190.0090.00916.68
7.3.180.0130.00316.77
7.3.170.0080.00816.60
7.3.160.0100.00716.77
7.3.120.0060.01014.88
7.3.110.0140.00314.92
7.3.100.0080.00814.82
7.3.90.0020.01414.97
7.3.80.0020.01114.85
7.3.70.0080.00914.79
7.3.60.0030.01015.06
7.3.50.0080.00314.96
7.3.40.0080.00614.96
7.3.30.0060.00814.83
7.3.20.0030.01016.74
7.3.10.0050.00916.75
7.3.00.0020.01116.59
7.2.330.0130.00316.53
7.2.320.0060.01216.73
7.2.310.0030.01716.65
7.2.300.0090.00916.62
7.2.290.0080.00816.64
7.2.250.0080.01215.14
7.2.240.0070.00814.99
7.2.230.0060.00815.08
7.2.220.0100.00815.17
7.2.210.0080.00514.97
7.2.200.0020.01214.87
7.2.190.0020.01514.89
7.2.180.0040.00915.09
7.2.170.0030.01115.13
7.2.60.0060.00616.80
7.1.330.0020.01015.95
7.1.320.0050.00915.90
7.1.310.0100.00315.75
7.1.300.0080.00715.87
7.1.290.0050.00815.76
7.1.280.0050.01015.84
7.1.270.0080.00815.64
7.1.260.0030.00715.94
7.1.200.0060.00615.79
7.1.90.0060.00717.84
7.1.80.0040.01218.09
7.1.70.0130.00017.17
7.1.60.0140.01035.10
7.1.50.0170.00734.82
7.1.40.0120.01234.24
7.1.30.0200.00434.38
7.1.20.0110.01434.47
7.1.10.0080.00816.81
7.1.00.0070.01016.80
7.0.230.0030.01317.83
7.0.220.0070.00717.89
7.0.210.0040.01216.64
7.0.200.0070.00417.02
7.0.190.0100.00516.97
7.0.180.0090.00316.26
7.0.170.0060.00616.27
7.0.160.0070.01016.50
7.0.150.0060.00916.13
7.0.140.0000.01516.41
7.0.130.0060.01416.65
7.0.120.0030.01316.48
7.0.110.0060.00616.64
7.0.100.0100.00316.57
7.0.90.0100.00416.39
7.0.80.0030.01016.38
7.0.70.0040.00816.62
7.0.60.0030.01016.23
7.0.50.0000.01216.53
7.0.40.0060.00616.51
7.0.30.0080.00416.51
7.0.20.0030.01116.45
7.0.10.0070.00716.57
7.0.00.0080.00516.62

preferences:
67.76 ms | 401 KiB | 5 Q