3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = " put returns between paragraphs for linebreak add 2 spaces at end "; var_export( preg_replace('/\v+/', ' ', trim($string)) );

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.130.0060.00419.48
8.4.120.0080.01222.37
8.4.110.0040.00722.46
8.4.100.0130.00817.96
8.4.90.0090.00917.92
8.4.80.0110.00817.88
8.4.70.0120.00819.51
8.4.60.0130.00618.89
8.4.50.0090.00818.78
8.4.40.0150.00617.69
8.4.30.0060.01320.57
8.4.20.0160.00320.02
8.4.10.0120.00819.73
8.3.260.0100.01016.63
8.3.250.0110.00818.71
8.3.240.0100.00717.00
8.3.230.0070.00916.60
8.3.220.0100.00817.02
8.3.210.0090.00516.71
8.3.200.0060.00316.47
8.3.190.0100.00817.00
8.3.180.0070.00217.06
8.3.170.0150.00418.95
8.3.160.0130.00617.13
8.3.150.0030.00716.97
8.3.140.0090.00616.95
8.3.130.0050.00318.79
8.3.120.0000.00820.79
8.3.110.0060.00320.94
8.3.100.0120.00324.06
8.3.90.0040.01126.77
8.3.80.0000.01017.97
8.3.70.0140.00716.75
8.3.60.0040.01118.43
8.3.50.0110.00418.67
8.3.40.0040.01123.84
8.3.30.0070.01422.96
8.3.20.0130.00722.96
8.3.10.0060.01322.96
8.3.00.0070.01122.96
8.2.290.0060.00320.18
8.2.280.0010.00718.69
8.2.270.0100.00720.59
8.2.260.0000.00818.16
8.2.250.0140.00018.29
8.2.240.0000.00819.23
8.2.230.0150.00022.58
8.2.220.0030.00737.54
8.2.210.0080.00026.77
8.2.200.0030.00618.30
8.2.190.0100.00316.58
8.2.180.0110.00316.38
8.2.170.0070.00722.96
8.2.160.0110.01122.96
8.2.150.0090.00622.96
8.2.140.0080.00822.96
8.2.130.0100.01022.96
8.2.120.0140.00722.96
8.2.110.0060.00922.96
8.2.100.0100.00722.96
8.2.90.0090.01222.96
8.2.80.0140.00722.96
8.2.70.0130.00622.96
8.2.60.0070.01422.96
8.2.50.0130.00722.96
8.2.40.0140.00422.96
8.2.30.0120.00922.96
8.2.20.0170.00322.96
8.2.10.0080.01122.96
8.2.00.0060.01022.96
8.1.330.0110.00621.75
8.1.320.0090.01016.35
8.1.310.0140.00418.50
8.1.300.0080.00817.99
8.1.290.0100.01030.84
8.1.280.0160.00725.92
8.1.270.0070.00722.96
8.1.260.0120.00322.96
8.1.250.0090.00622.96
8.1.240.0090.00622.96
8.1.230.0040.01122.96
8.1.220.0120.00322.96
8.1.210.0120.00322.96
8.1.200.0090.00622.96
8.1.190.0110.00422.96
8.1.180.0110.00422.96
8.1.170.0120.00322.96
8.1.160.0040.01522.96
8.1.150.0140.00422.96
8.1.140.0120.00622.96
8.1.130.0110.00422.96
8.1.120.0130.00322.96
8.1.110.0130.00322.96
8.1.100.0120.01222.96
8.1.90.0030.01722.96
8.1.80.0060.01122.96
8.1.70.0040.01622.96
8.1.60.0130.00722.96
8.1.50.0030.01422.96
8.1.40.0110.00422.96
8.1.30.0070.00722.96
8.1.20.0070.00722.96
8.1.10.0050.00922.96
8.1.00.0140.00022.96

preferences:
26.49 ms | 403 KiB | 5 Q