3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = <<<EOT <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" Yadda yadda yadda <dict> <key>default</key> EOT; $output .= "<string>" . "Hello" . "</string>"; $output .= <<<EOT </dict> <key>anchorLeft</key> <string>1</string> <key>anchorRight</key> EOT; echo $output; $output = <<<EOT <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" Yadda yadda yadda <dict> <key>default</key> EOT; $output .= "<string>" . "Hello" . "</string>"; $output .= <<<EOT </dict> <key>anchorLeft</key> <string>1</string> <key>anchorRight</key> \nEOT; $foobar = <<<EOT <foo>bar</foo> EOT; echo \n echo EOT; EOT; echo $output; echo $foobar;

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.60.0100.01018.28
8.3.50.0150.00318.17
8.3.40.0110.00318.80
8.3.30.0070.00718.75
8.3.20.0070.00020.20
8.3.10.0060.00320.63
8.3.00.0050.00221.90
8.2.180.0060.01518.14
8.2.170.0110.00422.96
8.2.160.0130.00322.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.05
8.2.120.0000.00726.35
8.2.110.0060.00322.13
8.2.100.0040.00817.80
8.2.90.0060.00319.11
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0000.00917.93
8.2.50.0060.00318.09
8.2.40.0040.00420.52
8.2.30.0070.00019.35
8.2.20.0030.00517.62
8.2.10.0040.00417.80
8.2.00.0040.00417.92
8.1.280.0070.01425.92
8.1.270.0040.00422.14
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00622.54
8.1.230.0070.00317.76
8.1.220.0050.00517.74
8.1.210.0000.00818.77
8.1.200.0040.00717.22
8.1.190.0040.00417.10
8.1.180.0030.00518.10
8.1.170.0060.00318.46
8.1.160.0000.00720.56
8.1.150.0040.00418.70
8.1.140.0040.00419.36
8.1.130.0030.00317.47
8.1.120.0000.00717.33
8.1.110.0050.00317.31
8.1.100.0000.00717.32
8.1.90.0040.00417.35
8.1.80.0000.00717.32
8.1.70.0000.00717.30
8.1.60.0040.00417.44
8.1.50.0000.00817.37
8.1.40.0090.00017.34
8.1.30.0080.00017.50
8.1.20.0050.00217.39
8.1.10.0000.00717.45
8.1.00.0000.00717.38
8.0.300.0020.00518.77
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0030.00317.18
8.0.260.0030.00617.20
8.0.250.0070.00016.91
8.0.240.0070.00016.89
8.0.230.0030.00316.85
8.0.220.0030.00316.89
8.0.210.0080.00016.78
8.0.200.0000.00616.96
8.0.190.0030.00316.88
8.0.180.0070.00016.79
8.0.170.0030.00516.92
8.0.160.0000.00716.92
8.0.150.0030.00316.80
8.0.140.0030.00316.82
8.0.130.0000.00813.47
8.0.120.0050.00216.73
8.0.110.0070.00016.92
8.0.100.0040.00416.86
8.0.90.0000.00716.88
8.0.80.0090.00616.75
8.0.70.0000.00716.71
8.0.60.0030.00516.82
8.0.50.0030.00516.81
8.0.30.0090.00717.06
8.0.20.0070.01217.40
8.0.10.0000.00716.98
8.0.00.0090.01116.73
7.4.330.0000.00516.97
7.4.320.0000.00616.45
7.4.300.0030.00316.31
7.4.290.0080.00016.41
7.4.280.0000.00816.45
7.4.270.0040.00416.46
7.4.260.0030.00616.29
7.4.250.0070.00016.35
7.4.240.0000.00716.42
7.4.230.0040.00416.22
7.4.220.0150.00416.45
7.4.210.0060.01016.29
7.4.200.0040.00416.41
7.4.160.0120.00916.30
7.4.150.0070.01017.40
7.4.140.0110.00617.86
7.4.130.0110.00616.43
7.4.120.0160.00416.49
7.4.110.0100.00716.13
7.4.100.0100.00716.29
7.4.90.0090.01216.34
7.4.80.0070.01119.39
7.4.70.0100.00616.14
7.4.60.0060.00916.42
7.4.50.0120.00016.05
7.4.40.0110.01116.27
7.4.30.0090.00616.47
7.4.00.0040.01514.97
7.3.330.0030.00313.21
7.3.320.0020.00213.08
7.3.310.0080.00016.00
7.3.300.0000.00716.22
7.3.290.0120.00616.16
7.3.280.0100.00816.17
7.3.270.0100.01017.40
7.3.260.0030.01316.09
7.3.250.0120.00616.40
7.3.240.0100.00716.25
7.3.230.0120.00616.39
7.3.210.0030.01316.45
7.3.200.0130.00316.13
7.3.190.0130.00616.19
7.3.180.0090.00616.09
7.3.170.0100.00616.34
7.3.160.0060.00916.26
7.2.330.0040.01416.20
7.2.320.0050.01616.68
7.2.310.0080.00816.58
7.2.300.0130.00316.61
7.2.290.0160.00016.23
7.2.60.0030.01316.75
7.2.00.0000.01319.18
7.1.200.0070.00415.39
7.1.100.0090.00617.97
7.1.70.0000.01016.97
7.1.60.0030.01719.19
7.1.50.0090.00916.89
7.1.00.0030.07722.45
7.0.200.0320.00914.32
7.0.60.0170.04321.72
7.0.50.0000.04317.79
7.0.40.0070.06720.03
7.0.30.0070.04720.17
7.0.20.0370.06720.04
7.0.10.0000.07320.30
7.0.00.0170.03720.28
5.6.280.0030.03020.82
5.6.210.0200.04320.70
5.6.200.0130.07318.22
5.6.190.0030.08020.60
5.6.180.0230.04320.60
5.6.170.0200.07720.45
5.6.160.0100.04320.38
5.6.150.0130.04318.13
5.6.140.0070.04018.11
5.6.130.0130.04018.18
5.6.120.0000.04720.89
5.6.110.0030.08720.96
5.6.100.0070.06021.10
5.6.90.0000.07320.97
5.6.80.0170.06320.40
5.5.350.0270.07720.30
5.5.340.0030.04717.95
5.5.330.0100.08020.43
5.5.320.0400.07320.20
5.5.310.0200.08320.17
5.5.300.0070.04317.91
5.5.290.0100.05318.00
5.5.280.0070.08320.77
5.5.270.0030.05320.66
5.5.260.0070.03720.79
5.5.250.0100.07720.50
5.5.240.0000.07720.16

preferences:
47.23 ms | 401 KiB | 5 Q