3v4l.org

run code in 300+ PHP versions simultaneously
<?php // text includes line breaks $text_with_line_breaks = "1st\n2nd\3rd\n" $body=highlight_string ( $text_with_line_breaks, $return=TRUE); // $body is a single line, without line breaks ?>

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)
5.5.70.0170.06019.41
5.5.60.0100.03719.26
5.5.50.0130.03019.54
5.5.40.0030.08019.33
5.5.30.0070.06019.46
5.5.20.0070.08019.52
5.5.10.0100.04319.27
5.5.00.0030.04019.25
5.4.230.0070.03319.08
5.4.220.0030.04019.14
5.4.210.0070.04019.14
5.4.200.0070.03718.91
5.4.190.0070.07019.11
5.4.180.0070.06018.86
5.4.170.0100.03319.14
5.4.160.0070.05019.13
5.4.150.0130.07018.90
5.4.140.0070.07016.46
5.4.130.0130.06716.37
5.4.120.0000.07716.40
5.4.110.0100.06316.44
5.4.100.0100.04316.43
5.4.90.0070.07016.43
5.4.80.0070.03716.38
5.4.70.0130.06716.39
5.4.60.0070.07016.41
5.4.50.0170.04316.31
5.4.40.0070.08016.38
5.4.30.0070.07716.40
5.4.20.0070.03716.44
5.4.10.0100.07316.38
5.4.00.0070.06715.90
5.3.280.0030.08314.51
5.3.270.0070.03714.53
5.3.260.0100.03314.58
5.3.250.0070.03714.54
5.3.240.0070.05014.55
5.3.230.0070.05014.53
5.3.220.0030.05314.51
5.3.210.0030.05314.50
5.3.200.0100.06014.36
5.3.190.0130.05714.56
5.3.180.0070.05014.54
5.3.170.0000.08014.54
5.3.160.0030.03714.49
5.3.150.0030.03714.44
5.3.140.0000.04314.38
5.3.130.0000.05014.34
5.3.120.0100.07014.48
5.3.110.0100.03314.52
5.3.100.0100.03313.97
5.3.90.0000.04013.95
5.3.80.0170.06313.80
5.3.70.0070.07013.82
5.3.60.0070.07714.02
5.3.50.0070.05313.76
5.3.40.0070.07313.78
5.3.30.0000.04713.85
5.3.20.0030.03713.48
5.3.10.0070.03313.48
5.3.00.0030.04713.57

preferences:
130.45 ms | 1394 KiB | 7 Q