3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'New line with single quotes: ' . nl2br('\n') . PHP_EOL; echo 'New line with double quotes: ' . nl2br("\n") . 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.3.130.0000.00818.28
8.3.120.0060.00318.97
8.3.110.0130.00620.94
8.3.100.0090.00024.06
8.3.90.0100.00726.77
8.3.80.0000.00917.97
8.3.70.0110.00418.43
8.3.60.0090.00918.43
8.3.50.0090.00916.75
8.3.40.0030.01020.21
8.3.30.0120.00318.53
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0020.00526.16
8.2.240.0100.00018.22
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0080.00026.77
8.2.200.0060.00316.50
8.2.190.0120.00316.58
8.2.180.0140.00716.50
8.2.170.0070.00718.95
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0100.00020.95
8.2.100.0060.00617.78
8.2.90.0000.01119.27
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00717.93
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00419.84
8.2.20.0030.00519.40
8.2.10.0050.00319.46
8.2.00.0070.00019.46
8.1.300.0060.01219.45
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0100.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.68
8.1.230.0070.00418.98
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0050.00517.35
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0080.00018.74
8.1.160.0050.00218.78
8.1.150.0070.00019.04
8.1.140.0080.00019.04
8.1.130.0060.00319.18
8.1.120.0050.00319.23
8.1.110.0030.00519.09
8.1.100.0040.00419.16
8.1.90.0000.00719.24
8.1.80.0040.00419.23
8.1.70.0000.00819.30
8.1.60.0060.00319.33
8.1.50.0070.00019.29
8.1.40.0040.00419.32
8.1.30.0080.00019.30
8.1.20.0000.00819.28
8.1.10.0040.00419.13
8.1.00.0030.00619.10
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0000.00718.28
8.0.270.0000.00818.48
8.0.260.0030.00518.46
8.0.250.0000.00718.52
8.0.240.0060.00318.65
8.0.230.0040.00418.52
8.0.220.0050.00318.56
8.0.210.0000.00818.52
8.0.200.0000.00718.52
8.0.190.0000.00716.79
8.0.180.0050.00216.83
8.0.170.0070.00016.79
8.0.160.0030.00516.81
8.0.150.0000.00816.73
8.0.140.0000.00716.73
8.0.130.0000.00816.71
8.0.120.0070.00016.64
8.0.110.0050.00216.74
8.0.100.0030.00316.77
8.0.90.0000.00716.70
8.0.80.0030.00516.71
8.0.70.0000.00716.81
8.0.60.0080.00016.66
8.0.50.0040.00416.62
8.0.30.0000.00816.63
8.0.20.0030.00316.60
8.0.10.0030.00316.79

preferences:
36.5 ms | 403 KiB | 5 Q