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> echo \n EOT; $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.70.0080.00816.50
8.3.60.0120.00918.43
8.3.50.0150.00121.92
8.3.40.0100.00318.79
8.3.30.0100.00718.79
8.3.20.0030.00620.46
8.3.10.0080.00020.64
8.3.00.0040.00421.89
8.2.190.0110.01118.29
8.2.180.0140.00316.50
8.2.170.0150.00022.96
8.2.160.0130.00322.13
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.18
8.2.120.0080.00026.35
8.2.110.0090.00022.04
8.2.100.0000.01217.79
8.2.90.0060.00319.09
8.2.80.0030.00617.97
8.2.70.0000.00817.38
8.2.60.0000.00817.80
8.2.50.0000.00818.09
8.2.40.0000.00720.36
8.2.30.0030.00519.18
8.2.20.0050.00317.49
8.2.10.0000.00717.92
8.2.00.0050.00217.92
8.1.280.0000.01425.92
8.1.270.0040.00421.95
8.1.260.0080.00028.09
8.1.250.0140.00028.09
8.1.240.0050.00522.48
8.1.230.0000.01117.64
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0040.00817.10
8.1.190.0040.00417.10
8.1.180.0060.00318.10
8.1.170.0060.00318.49
8.1.160.0070.00020.60
8.1.150.0040.00418.75
8.1.140.0000.00819.48
8.1.130.0000.00717.61
8.1.120.0000.00817.30
8.1.110.0050.00317.39
8.1.100.0000.00717.22
8.1.90.0000.00817.27
8.1.80.0000.00817.28
8.1.70.0080.00017.31
8.1.60.0040.00417.40
8.1.50.0040.00417.29
8.1.40.0000.00817.42
8.1.30.0030.00517.43
8.1.20.0070.00017.36
8.1.10.0030.00517.43
8.1.00.0030.00617.39
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.38
8.0.270.0030.00317.20
8.0.260.0040.00417.18
8.0.250.0000.00716.85
8.0.240.0070.00016.83
8.0.230.0040.00416.88
8.0.220.0040.00416.93
8.0.210.0000.00716.76
8.0.200.0000.00617.00
8.0.190.0070.00016.99
8.0.180.0000.00716.91
8.0.170.0050.00316.93
8.0.160.0070.00016.79
8.0.150.0000.00716.76
8.0.140.0030.00316.74
8.0.130.0060.00313.46
8.0.120.0040.00416.74
8.0.110.0000.00716.91
8.0.100.0040.00416.77
8.0.90.0040.00416.92
8.0.80.0090.00616.78
8.0.70.0000.00816.93
8.0.60.0000.00716.84
8.0.50.0040.00416.89
8.0.30.0140.00417.00
8.0.20.0130.01117.40
8.0.10.0000.00816.83
8.0.00.0100.01016.73
7.4.330.0020.00216.78
7.4.320.0000.00616.37
7.4.300.0030.00316.48
7.4.290.0000.00716.54
7.4.280.0040.00416.38
7.4.270.0050.00316.43
7.4.260.0050.00316.26
7.4.250.0030.00516.35
7.4.240.0030.00316.47
7.4.230.0030.00316.36
7.4.220.0110.00816.38
7.4.210.0070.01416.50
7.4.200.0070.00016.47
7.4.160.0090.00616.28
7.4.150.0070.01017.40
7.4.140.0150.00617.86
7.4.130.0120.01116.39
7.4.120.0100.00716.40
7.4.110.0090.00916.33
7.4.100.0100.01316.34
7.4.90.0070.01016.39
7.4.80.0070.01619.39
7.4.70.0130.00316.46
7.4.60.0060.01216.22
7.4.50.0100.00716.52
7.4.40.0070.01016.61
7.4.30.0030.01316.33
7.4.00.0050.01114.81
7.3.330.0030.00313.23
7.3.320.0000.00513.02
7.3.310.0070.00016.12
7.3.300.0030.00316.03
7.3.290.0060.00916.24
7.3.280.0080.00716.22
7.3.270.0120.00417.40
7.3.260.0100.00716.38
7.3.250.0070.01216.15
7.3.240.0050.01016.14
7.3.230.0160.00316.39
7.3.210.0160.00816.27
7.3.200.0120.00316.25
7.3.190.0100.00616.34
7.3.180.0140.00316.23
7.3.170.0060.01116.42
7.3.160.0090.00616.44
7.3.120.0110.00714.35
7.3.110.0070.01014.83
7.3.100.0130.00014.82
7.3.90.0030.00714.75
7.3.80.0000.01615.01
7.3.70.0090.00614.70
7.3.60.0090.00314.61
7.3.50.0120.00014.81
7.3.40.0080.00514.82
7.3.30.0030.00714.87
7.3.20.0080.00616.50
7.3.10.0070.00716.36
7.3.00.0060.00716.49
7.2.330.0120.00616.57
7.2.320.0070.01316.61
7.2.310.0120.00616.35
7.2.300.0060.01016.23
7.2.290.0130.00316.48
7.2.250.0130.00615.17
7.2.240.0070.01115.06
7.2.230.0040.01115.07
7.2.220.0040.00814.83
7.2.210.0060.00915.03
7.2.200.0030.01015.03
7.2.190.0030.01314.85
7.2.180.0040.01114.91
7.2.170.0000.01414.85
7.2.130.0060.00916.74
7.2.120.0190.00316.37
7.2.110.0140.00516.80
7.2.100.0100.00516.37
7.2.90.0110.00716.85
7.2.80.0130.00716.77
7.2.70.0080.01116.38
7.2.60.0120.00716.74
7.2.50.0070.01016.38
7.2.40.0090.00316.43
7.2.30.0030.00716.81
7.2.20.0030.00916.47
7.2.10.0110.00416.57
7.2.00.0070.00817.95
7.1.330.0060.00915.86
7.1.320.0040.01115.77
7.1.310.0030.01215.44
7.1.300.0120.00315.68
7.1.290.0110.00315.59
7.1.280.0070.00715.74
7.1.270.0060.00315.76
7.1.260.0030.01315.57
7.1.250.0120.00415.57
7.1.200.0090.00315.70
7.1.100.0070.01017.76
7.1.70.0000.00816.97
7.1.60.0130.01019.19
7.1.50.0100.00016.52
7.1.00.0030.07322.54
7.0.200.0480.00714.59
7.0.60.0230.07021.82
7.0.50.0030.04717.88
7.0.40.0130.07320.23
7.0.30.0130.04320.17
7.0.20.0300.06320.00
7.0.10.0100.07320.19
7.0.00.0070.09020.20
5.6.280.0000.03321.01
5.6.210.0200.06720.64
5.6.200.0100.06718.09
5.6.190.0070.07020.78
5.6.180.0230.05320.68
5.6.170.0270.06320.39
5.6.160.0100.08020.48
5.6.150.0100.07018.11
5.6.140.0030.05318.11
5.6.130.0070.08318.16
5.6.120.0100.03720.97
5.6.110.0030.06320.97
5.6.100.0070.08021.01
5.6.90.0130.08020.99
5.6.80.0170.07020.38
5.5.350.0330.07020.38
5.5.340.0070.04017.95
5.5.330.0070.04320.40
5.5.320.0700.06020.50
5.5.310.0170.04320.24
5.5.300.0130.04017.95
5.5.290.0000.05718.00
5.5.280.0100.04020.96
5.5.270.0070.05320.97
5.5.260.0070.03720.84
5.5.250.0130.07020.70
5.5.240.0130.07020.20

preferences:
41.96 ms | 401 KiB | 5 Q