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; $bazbar = <<<BAZ <bar>my foobar</bar> EOT; BAZ; 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.00618.43
8.3.50.0140.00522.05
8.3.40.0110.00418.66
8.3.30.0210.00018.64
8.3.20.0040.00420.39
8.3.10.0090.00020.49
8.3.00.0070.00021.85
8.2.180.0140.00716.50
8.2.170.0110.00422.96
8.2.160.0100.00319.32
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0070.00021.12
8.2.120.0070.00026.35
8.2.110.0060.00619.27
8.2.100.0060.00617.91
8.2.90.0050.00220.47
8.2.80.0000.00817.97
8.2.70.0050.00318.03
8.2.60.0040.00418.34
8.2.50.0000.00918.10
8.2.40.0000.00919.47
8.2.30.0020.00519.18
8.2.20.0080.00017.65
8.2.10.0050.00318.17
8.2.00.0050.00217.93
8.1.280.0110.00825.92
8.1.270.0070.00722.24
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0070.00322.54
8.1.230.0080.00421.04
8.1.220.0040.00417.79
8.1.210.0000.00918.89
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0050.00518.10
8.1.170.0000.00918.30
8.1.160.0000.00818.76
8.1.150.0000.00718.74
8.1.140.0040.00419.55
8.1.130.0030.00317.60
8.1.120.0040.00417.41
8.1.110.0040.00317.37
8.1.100.0000.00717.32
8.1.90.0070.00017.38
8.1.80.0080.00017.35
8.1.70.0000.00717.30
8.1.60.0040.00417.40
8.1.50.0030.00617.37
8.1.40.0000.00817.44
8.1.30.0000.00817.57
8.1.20.0030.00617.40
8.1.10.0000.00717.49
8.1.00.0070.00017.46
8.0.300.0000.00819.99
8.0.290.0080.00016.75
8.0.280.0050.00318.38
8.0.270.0030.00317.25
8.0.260.0000.00617.27
8.0.250.0040.00416.95
8.0.240.0000.00717.01
8.0.230.0040.00416.85
8.0.220.0030.00616.80
8.0.210.0000.00716.88
8.0.200.0040.00416.84
8.0.190.0030.00617.00
8.0.180.0040.00416.80
8.0.170.0000.00716.88
8.0.160.0040.00416.86
8.0.150.0000.00716.78
8.0.140.0110.00016.85
8.0.130.0030.00313.40
8.0.120.0000.00816.75
8.0.110.0030.00516.72
8.0.100.0040.00416.88
8.0.90.0000.00716.97
8.0.80.0090.00916.84
8.0.70.0000.00716.77
8.0.60.0040.00416.68
8.0.50.0070.00016.68
8.0.30.0090.00917.02
8.0.20.0070.01117.40
8.0.10.0040.00416.96
8.0.00.0070.01216.67
7.4.330.0000.00516.84
7.4.320.0000.00716.43
7.4.300.0000.00616.54
7.4.290.0030.00316.42
7.4.280.0000.00816.53
7.4.270.0000.00716.36
7.4.260.0000.00716.48
7.4.250.0040.00416.41
7.4.240.0000.00816.58
7.4.230.0030.00316.23
7.4.220.0120.00616.43
7.4.210.0070.00716.51
7.4.200.0080.00016.47
7.4.160.0060.01016.66
7.4.150.0100.01017.40
7.4.140.0100.00717.86
7.4.130.0050.01316.55
7.4.120.0080.01116.40
7.4.110.0190.00316.64
7.4.100.0140.00316.36
7.4.90.0070.01016.61
7.4.80.0090.00819.39
7.4.70.0060.01316.38
7.4.60.0100.01016.44
7.4.50.0040.00816.49
7.4.40.0070.01016.41
7.4.30.0090.01216.39
7.4.00.0040.01115.11
7.3.330.0060.00013.16
7.3.320.0020.00213.16
7.3.310.0060.00016.30
7.3.300.0000.00716.25
7.3.290.0070.01116.29
7.3.280.0130.00516.28
7.3.270.0150.00317.40
7.3.260.0070.01016.52
7.3.250.0070.01016.36
7.3.240.0070.01316.36
7.3.230.0070.01016.39
7.3.210.0150.00716.55
7.3.200.0150.00316.19
7.3.190.0030.01316.45
7.3.180.0110.00716.30
7.3.170.0100.00716.30
7.3.160.0130.00616.17
7.3.10.0060.00616.46
7.3.00.0090.00316.82
7.2.330.0090.00916.49
7.2.320.0030.01516.60
7.2.310.0100.00716.51
7.2.300.0090.00916.67
7.2.290.0170.00016.38
7.2.130.0060.00616.69
7.2.120.0030.00916.68
7.2.110.0080.00416.80
7.2.100.0110.00016.81
7.2.90.0070.00316.74
7.2.80.0090.00316.63
7.2.70.0060.00916.95
7.2.60.0060.00916.79
7.2.50.0040.01116.77
7.2.40.0070.00916.82
7.2.30.0090.00316.52
7.2.20.0000.00916.93
7.2.10.0030.01016.53
7.2.00.0050.00918.05
7.1.250.0030.00715.73
7.1.200.0040.01115.56
7.1.70.0080.00017.22
7.1.60.0000.01017.10
7.1.50.0210.01434.84
7.1.00.0030.07722.33
7.0.200.0040.00816.78
7.0.60.0130.04321.63
7.0.50.0100.07717.81
7.0.40.0100.07020.27
7.0.30.0200.04720.00
7.0.20.0170.08720.01
7.0.10.0030.04320.02
7.0.00.0100.07720.01
5.6.280.0070.06320.78
5.6.210.0070.07720.69
5.6.200.0030.08318.18
5.6.190.0000.05720.57
5.6.180.0300.05320.53
5.6.170.0270.08020.50
5.6.160.0070.04020.61
5.6.150.0000.08718.12
5.6.140.0000.07318.07
5.6.130.0200.07018.21
5.6.120.0030.04021.02
5.6.110.0070.08720.89
5.6.100.0030.07720.97
5.6.90.0100.08020.97
5.6.80.0100.05720.38
5.5.350.0170.03320.38
5.5.340.0100.05017.99
5.5.330.0030.04720.21
5.5.320.0330.06720.29
5.5.310.0300.04720.27
5.5.300.0070.05018.01
5.5.290.0130.06318.03
5.5.280.0070.08720.80
5.5.270.0130.07320.76
5.5.260.0030.06320.79
5.5.250.0130.08320.66
5.5.240.0030.07720.07

preferences:
56.46 ms | 401 KiB | 5 Q