3v4l.org

run code in 300+ PHP versions simultaneously
<?php/* The \b in the pattern indicates a word boundary, so only the distinct * word "web" is matched, and not a word partial like "webbing" or "cobweb" */ if (preg_match("/\bweb\b/i", "PHP is the web scripting language of choice.")) { echo "A match was found."; } else { echo "A match was not found."; } if (preg_match("/\bweb\b/i", "PHP is the website scripting language of choice.")) { echo "A match was found."; } else { echo "A match was not found."; }

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.0090.00618.73
8.3.30.0160.00018.55
8.3.20.0050.00318.66
8.3.10.0080.00018.43
8.3.00.0050.00519.38
8.2.170.0000.01522.96
8.2.160.0090.00618.66
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0060.00318.82
8.2.110.0030.00620.89
8.2.100.0080.00317.78
8.2.90.0050.00317.81
8.2.80.0080.00017.97
8.2.70.0000.00817.91
8.2.60.0000.00818.16
8.2.50.0050.00318.10
8.2.40.0060.00319.41
8.2.30.0070.00317.54
8.2.20.0040.00417.39
8.2.10.0040.00417.59
8.2.00.0030.00617.55
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.06
8.1.230.0070.00422.83
8.1.220.0060.00317.74
8.1.210.0000.00818.87
8.1.200.0000.00917.22
8.1.190.0000.01016.88
8.1.180.0040.00418.10
8.1.170.0050.00418.52
8.1.160.0050.00318.51
8.1.150.0000.00718.50
8.1.140.0020.00517.31
8.1.130.0000.00717.31
8.1.120.0000.00817.26
8.1.110.0050.00317.19
8.1.100.0030.00417.33
8.1.90.0040.00417.29
8.1.80.0000.00717.37
8.1.70.0040.00417.29
8.1.60.0100.00017.45
8.1.50.0000.00717.33
8.1.40.0000.00817.38
8.1.30.0000.00917.54
8.1.20.0040.00417.52
8.1.10.0030.00517.30
8.1.00.0030.00517.38
8.0.300.0040.00420.08
8.0.290.0000.00716.58
8.0.280.0000.00718.30
8.0.270.0040.00417.07
8.0.260.0060.00016.65
8.0.250.0050.00316.72
8.0.240.0040.00416.75
8.0.230.0030.00316.81
8.0.220.0070.00016.74
8.0.210.0000.00716.77
8.0.200.0080.00016.72
8.0.190.0060.00316.84
8.0.180.0100.00016.61
8.0.170.0030.00516.72
8.0.160.0040.00316.77
8.0.150.0000.00716.73
8.0.140.0000.01216.63
8.0.130.0000.00513.45
8.0.120.0030.00516.77
8.0.110.0050.00216.81
8.0.100.0070.00016.82
8.0.90.0030.00516.78
8.0.80.0060.01216.80
8.0.70.0000.00716.66
8.0.60.0040.00416.61
8.0.50.0020.00516.58
8.0.30.0080.01116.90
8.0.20.0080.01216.89
8.0.10.0000.00716.76
8.0.00.0090.00916.53
7.4.330.0000.00512.84
7.4.320.0060.00016.47
7.4.300.0040.00416.35
7.4.290.0000.00616.41
7.4.280.0050.00316.45
7.4.270.0030.00316.40
7.4.260.0000.00513.11
7.4.250.0060.00316.44
7.4.240.0030.00316.36
7.4.230.0050.00516.45
7.4.220.0180.00716.53
7.4.210.0110.00516.52
7.4.200.0060.00316.18
7.4.190.0000.00716.17
7.4.160.0130.00916.33
7.4.150.0080.00816.35
7.4.140.0120.00616.43
7.4.130.0040.01116.45
7.4.120.0090.00616.57
7.4.110.0070.01016.41
7.4.100.0090.00916.54
7.4.90.0110.01216.32
7.4.80.0120.01019.39
7.4.70.0130.00316.23
7.4.60.0100.00616.40
7.4.50.0040.00016.23
7.4.40.0090.00916.21
7.4.30.0070.01416.57
7.3.330.0030.00313.13
7.3.320.0000.00613.14
7.3.310.0060.00315.98
7.3.300.0060.00016.12
7.3.290.0030.01016.11
7.3.280.0100.00716.07
7.3.270.0100.01416.18
7.3.260.0110.00616.34
7.3.250.0150.01016.31
7.3.240.0130.00316.27
7.3.230.0060.01616.41
7.3.210.0170.00016.29
7.3.200.0000.02216.36
7.3.190.0110.01116.24
7.3.180.0040.01116.16
7.3.170.0070.01416.32
7.3.160.0070.01016.36
7.2.330.0060.01516.33
7.2.320.0070.01516.29
7.2.310.0100.01316.66
7.2.300.0120.00316.66
7.2.290.0120.00816.31
5.4.160.0100.03019.22
5.4.150.0030.04019.14
5.4.140.0070.03316.38
5.4.130.0030.03716.54
5.4.120.0130.07316.51
5.4.110.0070.06016.41
5.4.100.0200.06016.45
5.4.90.0030.06316.43
5.4.80.0070.04316.45
5.4.70.0130.06316.26
5.4.60.0070.07016.39
5.4.50.0070.04016.42
5.4.40.0100.07716.44
5.4.30.0100.07316.34
5.4.20.0100.03016.40
5.4.10.0070.03716.36
5.4.00.0130.06715.79
5.3.290.0170.06314.62
5.3.280.0030.07014.61
5.3.270.0170.06314.57
5.3.260.0070.06714.50
5.3.250.0000.04314.55
5.3.240.0030.04714.62
5.3.230.0070.08014.55
5.3.220.0070.07714.54
5.3.210.0070.05714.65
5.3.200.0030.04314.44
5.3.190.0030.05014.49
5.3.180.0070.07714.48
5.3.170.0100.06314.53
5.3.160.0070.05714.64
5.3.150.0070.06714.48
5.3.140.0030.04014.34
5.3.130.0000.07014.47
5.3.120.0000.04714.49
5.3.110.0030.05314.63
5.3.100.0000.05314.00
5.3.90.0030.08013.99
5.3.80.0070.07713.94
5.3.70.0130.07013.97
5.3.60.0030.03713.93
5.3.50.0070.06713.73
5.3.40.0030.05313.86
5.3.30.0030.05713.84
5.3.20.0170.06713.62
5.3.10.0100.07313.59
5.3.00.0000.04313.56

preferences:
34.68 ms | 400 KiB | 5 Q