3v4l.org

run code in 300+ PHP versions simultaneously
<?php $texts[] = <<<TEXT EXCLUDE this entire line include this line even this to EXCLUDE and EXCLUDE this and this as single match and EXCLUDE this line TEXT; $texts[] = <<<TEXT EXCLUDE this entire line and EXCLUDE this and this as single match TEXT; $texts[] = <<<TEXT EXCLUDE this entire line even this to EXCLUDE and EXCLUDE this and EXCLUDE this line TEXT; $texts[] = <<<TEXT include this line even this to EXCLUDE TEXT; var_export( preg_replace('/(\R)?.*\bEXCLUDE\b.*(?(1)|\R?)/', '', $texts) );

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.4.120.0070.01020.47
8.4.110.0070.00519.13
8.4.100.0110.01017.93
8.4.90.0110.00920.59
8.4.80.0090.00819.04
8.4.70.0100.01019.05
8.4.60.0110.00620.78
8.4.50.0110.00920.50
8.4.40.0100.01017.71
8.4.30.0060.00320.52
8.4.20.0120.00419.82
8.4.10.0050.00319.51
8.3.250.0040.00518.86
8.3.240.0130.00616.83
8.3.230.0040.00516.79
8.3.220.0040.00418.88
8.3.210.0120.00718.46
8.3.200.0050.00316.73
8.3.190.0090.01218.99
8.3.180.0090.01019.04
8.3.170.0070.01117.36
8.3.160.0140.00416.79
8.3.150.0150.00416.59
8.3.140.0120.00316.68
8.3.130.0080.00018.56
8.3.120.0040.00419.13
8.3.110.0100.01020.94
8.3.100.0060.01316.87
8.3.90.0000.00826.77
8.3.80.0060.00318.68
8.3.70.0120.00318.29
8.3.60.0030.01518.45
8.3.50.0060.01216.78
8.3.40.0070.01423.66
8.3.30.0070.01522.96
8.3.20.0150.00422.96
8.3.10.0090.00922.96
8.3.00.0130.00722.96
8.2.290.0120.00716.89
8.2.280.0050.00320.51
8.2.270.0120.00616.54
8.2.260.0040.00417.02
8.2.250.0080.00016.81
8.2.240.0090.00017.06
8.2.230.0040.01422.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0030.00618.79
8.2.190.0140.00416.88
8.2.180.0100.01016.63
8.2.170.0120.00322.96
8.2.160.0130.00622.96
8.2.150.0080.01122.96
8.2.140.0090.00922.96
8.2.130.0070.01122.96
8.2.120.0150.00322.96
8.2.110.0190.00022.96
8.2.100.0160.00322.96
8.2.90.0070.01422.96
8.2.80.0110.00422.96
8.2.70.0090.00622.96
8.2.60.0150.00022.96
8.2.50.0120.00922.96
8.2.40.0100.01022.96
8.2.30.0170.00322.96
8.2.20.0160.00322.96
8.2.10.0200.00022.96
8.2.00.0070.01122.96
8.1.330.0110.00916.39
8.1.320.0100.00616.50
8.1.310.0060.00916.56
8.1.300.0080.00416.09
8.1.290.0060.00330.84
8.1.280.0070.01425.92
8.1.270.0180.00323.96
8.1.260.0100.00722.96
8.1.250.0140.00722.96
8.1.240.0090.00922.96
8.1.230.0160.00622.96
8.1.220.0070.01322.96
8.1.210.0100.01022.96
8.1.200.0070.01122.96
8.1.190.0120.00622.96
8.1.180.0160.00322.96
8.1.170.0150.00422.96
8.1.160.0030.01222.96
8.1.150.0170.00322.96
8.1.140.0100.00722.96
8.1.130.0080.00822.96
8.1.120.0030.01222.96
8.1.110.0100.01022.96
8.1.100.0150.00822.96
8.1.90.0100.01422.96
8.1.80.0130.00322.96
8.1.70.0040.01122.96
8.1.60.0120.00622.96
8.1.50.0060.01222.96
8.1.40.0040.01122.96
8.1.30.0110.00422.96
8.1.20.0110.00422.96
8.1.10.0090.00622.96
8.1.00.0060.01222.96

preferences:
60.41 ms | 403 KiB | 5 Q