3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = array( 'First line<br>second line<br>third line<br>', 'First line <br>second line <br>third line <br>', 'First line<br> second line<br> third line<br> ', 'First line <br> second line <br> third line <br> ', 'First line <br> second line<br>third line <br> ', 'First line <br> second line <br>third line <br> ', 'First line<br>second line <br> third line<br>', 'First line <br> second line<br> third line <br> ', 'First line<br> second line <br> third line<br> ', 'First line<br/>second line<br/>third line<br/>', 'First line <br/>second line <br/>third line <br/>', 'First line<br/> second line<br/> third line<br/> ', 'First line <br/> second line <br/> third line <br/> ', 'First line <br/> second line<br/>third line <br/> ', 'First line <br/> second line <br/>third line <br/> ', 'First line<br/>second line <br/> third line<br/>', 'First line <br/> second line<br/> third line <br/> ', 'First line<br/> second line <br/> third line<br/> ', 'First line<br />second line<br />third line<br />', 'First line <br />second line <br />third line <br />', 'First line<br /> second line<br /> third line<br /> ', 'First line <br /> second line <br /> third line <br /> ', 'First line <br /> second line<br />third line <br /> ', 'First line <br /> second line <br />third line <br /> ', 'First line<br />second line <br /> third line<br />', 'First line <br /> second line<br /> third line <br /> ', 'First line<br /> second line <br /> third line<br /> ', 'First line<br class="hide-on-mobile" /> second line <br class="hide-on-mobile" /> third line', ); foreach ( $tests as $test ) { echo trim( preg_replace( '/(\s)?<br(.*?)>(\s)?/', ' ', $test ) ), PHP_EOL; }

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.20.0160.00318.86
8.4.10.0060.01322.01
8.3.150.0060.00320.71
8.3.140.0090.00018.88
8.3.130.0000.00818.55
8.3.120.0130.00718.70
8.3.110.0070.00320.94
8.3.100.0120.00016.73
8.3.90.0040.00426.77
8.3.80.0060.00316.75
8.3.70.0150.00016.75
8.3.60.0060.00918.68
8.3.50.0060.00918.54
8.3.40.0150.00318.97
8.3.30.0120.00418.83
8.3.20.0040.00424.18
8.3.10.0040.00824.66
8.3.00.0000.00826.16
8.2.270.0000.00917.23
8.2.260.0180.00016.68
8.2.250.0000.01116.68
8.2.240.0050.00319.20
8.2.230.0000.00822.58
8.2.220.0060.00324.06
8.2.210.0100.00026.77
8.2.200.0000.01016.75
8.2.190.0120.00916.75
8.2.180.0160.00625.92
8.2.170.0150.00419.14
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0080.00419.17
8.2.100.0070.00417.84
8.2.90.0040.00418.16
8.2.80.0030.00617.97
8.2.70.0040.00418.05
8.2.60.0070.00318.03
8.2.50.0000.00818.10
8.2.40.0000.00819.47
8.2.30.0000.00718.02
8.2.20.0040.00420.33
8.2.10.0000.00817.95
8.2.00.0000.00719.13
8.1.310.0050.01016.45
8.1.300.0090.00018.19
8.1.290.0060.00330.84
8.1.280.0090.00925.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0100.00028.09
8.1.240.0150.00422.02
8.1.230.0120.00022.71
8.1.220.0000.00817.74
8.1.210.0040.00418.85
8.1.200.0060.00317.48
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0030.00618.63
8.1.160.0040.00418.83
8.1.150.0040.00418.65
8.1.140.0080.00017.51
8.1.130.0070.00018.88
8.1.120.0030.00617.63
8.1.110.0000.00817.58
8.1.100.0060.00317.60
8.1.90.0030.00717.50
8.1.80.0040.00417.61
8.1.70.0080.00017.53
8.1.60.0080.00017.67
8.1.50.0060.00317.59
8.1.40.0000.01117.66
8.1.30.0150.00517.78
8.1.20.0100.00717.61
8.1.10.0160.00017.61
8.1.00.0140.00417.54
8.0.300.0050.00320.12
8.0.290.0090.00017.00
8.0.280.0030.00318.52
8.0.270.0030.00317.02
8.0.260.0030.00318.49
8.0.250.0000.00717.11
8.0.240.0040.00417.11
8.0.230.0060.00317.08
8.0.220.0070.00017.02
8.0.210.0080.00016.90
8.0.200.0030.00816.91
8.0.190.0070.00717.03
8.0.180.0130.00316.96
8.0.170.0050.01016.88
8.0.160.0170.00016.95
8.0.150.0090.00616.91
8.0.140.0090.00716.86
8.0.130.0100.00516.92
8.0.120.0120.00616.99
8.0.110.0130.00316.98
8.0.100.0000.01616.89
8.0.90.0100.00716.93
8.0.80.0080.00817.02
8.0.70.0110.00417.05
8.0.60.0100.00516.91
8.0.50.0150.00016.97
8.0.30.0130.00416.97
8.0.20.0120.00316.97
8.0.10.0100.00517.16
7.4.330.0000.00615.55
7.4.320.0060.00016.70
7.4.300.0170.00316.70
7.4.290.0110.00416.70
7.4.280.0120.00416.76
7.4.270.0160.00016.70
7.4.260.0130.00616.78
7.4.250.0190.00016.68
7.4.240.0130.00316.59
7.4.230.0090.00916.59
7.4.220.0110.00516.73
7.4.210.0120.00316.61
7.4.200.0060.01016.66
7.4.190.0100.00616.80
7.4.180.0150.00316.69
7.4.160.0160.00016.62
7.4.150.0070.00716.64
7.4.140.0120.00216.69
7.4.130.0110.00416.77
7.4.120.0050.01016.67
7.4.110.0110.00416.55
7.4.100.0120.00316.74
7.4.90.0130.00316.68
7.4.80.0110.00416.78
7.4.70.0090.00616.49
7.4.60.0090.00616.71
7.4.50.0100.00316.54
7.4.40.0110.00416.50
7.4.30.0150.00016.52
7.4.20.0090.00616.62
7.4.10.0060.00316.59
7.4.00.0030.00316.61

preferences:
59.24 ms | 403 KiB | 5 Q