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> EOT; $foobar = <<<EOT <foo>bar</foo> EOT; echo \nEOT; 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.0120.00918.68
8.3.50.0090.00618.05
8.3.40.0120.00318.96
8.3.30.0110.00418.97
8.3.20.0000.00820.29
8.3.10.0040.00420.53
8.3.00.0050.00321.82
8.2.180.0120.00816.63
8.2.170.0170.00322.96
8.2.160.0120.00822.27
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00321.03
8.2.120.0000.00826.35
8.2.110.0080.00422.13
8.2.100.0040.00717.93
8.2.90.0080.00019.36
8.2.80.0000.00817.97
8.2.70.0030.00617.61
8.2.60.0040.00418.04
8.2.50.0000.00818.09
8.2.40.0000.00720.53
8.2.30.0080.00019.58
8.2.20.0020.00517.68
8.2.10.0040.00418.02
8.2.00.0030.00318.24
8.1.280.0150.00025.92
8.1.270.0060.00321.86
8.1.260.0040.00428.09
8.1.250.0150.00028.09
8.1.240.0060.00322.66
8.1.230.0080.00417.79
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0030.00617.35
8.1.180.0050.00318.10
8.1.170.0050.00318.59
8.1.160.0000.00720.86
8.1.150.0080.00018.91
8.1.140.0000.00819.60
8.1.130.0050.00217.68
8.1.120.0040.00417.38
8.1.110.0040.00417.48
8.1.100.0040.00417.48
8.1.90.0080.00017.46
8.1.80.0070.00017.54
8.1.70.0030.00517.43
8.1.60.0050.00317.48
8.1.50.0050.00317.45
8.1.40.0080.00017.55
8.1.30.0000.00817.66
8.1.20.0000.00717.48
8.1.10.0000.00817.59
8.1.00.0000.00817.54
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0050.00218.50
8.0.270.0070.00017.27
8.0.260.0060.00317.18
8.0.250.0030.00317.05
8.0.240.0030.00317.02
8.0.230.0030.00316.92
8.0.220.0000.00716.98
8.0.210.0000.00716.97
8.0.200.0040.00417.03
8.0.190.0070.00016.92
8.0.180.0000.00717.02
8.0.170.0080.00016.98
8.0.160.0030.00317.05
8.0.150.0040.00416.98
8.0.140.0040.00416.93
8.0.130.0050.00013.35
8.0.120.0040.00416.82
8.0.110.0080.00017.01
8.0.100.0050.00316.75
8.0.90.0050.00316.99
8.0.80.0070.00716.94
8.0.70.0080.00016.77
8.0.60.0000.00716.85
8.0.50.0020.00517.07
8.0.30.0120.00516.97
8.0.20.0110.00817.40
8.0.10.0000.00716.96
8.0.00.0090.01316.80
7.4.330.0050.00016.82
7.4.320.0000.00616.45
7.4.300.0060.00016.52
7.4.290.0000.00716.52
7.4.280.0040.00416.51
7.4.270.0000.00616.64
7.4.260.0000.00816.63
7.4.250.0070.00016.58
7.4.240.0030.00316.59
7.4.230.0050.00316.45
7.4.220.0120.01216.49
7.4.210.0090.00916.72
7.4.200.0030.00316.43
7.4.160.0030.01316.60
7.4.150.0130.00917.40
7.4.140.0110.01317.86
7.4.130.0060.01516.71
7.4.120.0060.01116.49
7.4.110.0140.00316.42
7.4.100.0040.01416.68
7.4.90.0070.01016.58
7.4.80.0120.00619.39
7.4.70.0130.00316.55
7.4.60.0170.00016.69
7.4.50.0070.00716.50
7.4.40.0120.00816.41
7.4.30.0070.01016.56
7.4.00.0040.00814.91
7.3.330.0000.00613.17
7.3.320.0030.00313.18
7.3.310.0040.00416.34
7.3.300.0040.00416.12
7.3.290.0050.01316.36
7.3.280.0130.00716.31
7.3.270.0100.00717.40
7.3.260.0100.00716.59
7.3.250.0120.00716.40
7.3.240.0140.00316.54
7.3.230.0040.01416.39
7.3.210.0140.00616.47
7.3.200.0080.00816.38
7.3.190.0090.00816.51
7.3.180.0110.00616.42
7.3.170.0120.00316.51
7.3.160.0040.01216.48
7.2.330.0150.00416.59
7.2.320.0160.00616.57
7.2.310.0060.01516.48
7.2.300.0120.00416.72
7.2.290.0100.00716.39
7.2.60.0070.00416.48
7.2.00.0080.00519.26
7.1.200.0060.00615.65
7.1.100.0080.00817.96
7.1.70.0000.00716.96
7.1.60.0030.01919.19
7.1.50.0040.01816.91
7.1.00.0070.07022.31
7.0.200.0380.00714.92
7.0.60.0100.08021.71
7.0.50.0070.03717.82
7.0.40.0170.03720.10
7.0.30.0230.07320.34
7.0.20.0300.05720.18
7.0.10.0070.05020.12
7.0.00.0130.03719.99
5.6.280.0030.06020.93
5.6.210.0070.05320.46
5.6.200.0070.08318.09
5.6.190.0130.08020.67
5.6.180.0230.03720.57
5.6.170.0170.06720.51
5.6.160.0070.04020.33
5.6.150.0030.05018.10
5.6.140.0100.05318.09
5.6.130.0100.03718.09
5.6.120.0130.08021.05
5.6.110.0100.07721.14
5.6.100.0070.03721.13
5.6.90.0030.09321.09
5.6.80.0030.07320.36
5.5.350.0370.07320.33
5.5.340.0130.07717.92
5.5.330.0130.04020.30
5.5.320.0370.05020.13
5.5.310.0270.08020.30
5.5.300.0000.08017.91
5.5.290.0100.07717.91
5.5.280.0130.07720.89
5.5.270.0030.08020.98
5.5.260.0070.04020.86
5.5.250.0130.07720.68
5.5.240.0030.03720.16

preferences:
58.27 ms | 400 KiB | 5 Q