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 \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.40.0110.00419.00
8.3.30.0110.00419.02
8.3.20.0040.00420.18
8.3.10.0030.00520.53
8.3.00.0070.00021.88
8.2.170.0070.01322.96
8.2.160.0030.01322.12
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00021.11
8.2.120.0050.00326.35
8.2.110.0030.00619.39
8.2.100.0040.00717.80
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0030.00617.68
8.2.50.0040.00418.09
8.2.40.0030.00620.56
8.2.30.0070.00019.25
8.2.20.0050.00217.66
8.2.10.0070.00017.91
8.2.00.0000.00817.91
8.1.270.0040.00422.14
8.1.260.0000.00828.09
8.1.250.0040.01128.09
8.1.240.0060.00322.36
8.1.230.0070.00317.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00617.10
8.1.190.0000.00817.11
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0040.00420.55
8.1.150.0040.00418.76
8.1.140.0030.00519.44
8.1.130.0070.00017.70
8.1.120.0030.00417.29
8.1.110.0030.00517.22
8.1.100.0000.00717.23
8.1.90.0030.00517.36
8.1.80.0000.00817.29
8.1.70.0070.00017.34
8.1.60.0000.00817.46
8.1.50.0030.00617.27
8.1.40.0070.00017.40
8.1.30.0040.00417.57
8.1.20.0050.00317.22
8.1.10.0000.00717.34
8.1.00.0040.00417.36
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0030.00318.38
8.0.270.0030.00317.07
8.0.260.0000.00817.19
8.0.250.0000.00816.97
8.0.240.0030.00316.91
8.0.230.0030.00316.96
8.0.220.0030.00316.93
8.0.210.0000.00816.85
8.0.200.0040.00416.99
8.0.190.0000.00816.95
8.0.180.0030.00616.91
8.0.170.0000.00716.89
8.0.160.0070.00016.89
8.0.150.0080.00016.72
8.0.140.0040.00416.75
8.0.130.0000.01013.35
8.0.120.0050.00316.84
8.0.110.0000.00716.78
8.0.100.0040.00416.75
8.0.90.0000.00716.75
8.0.80.0110.01116.91
8.0.70.0050.00216.90
8.0.60.0050.00216.71
8.0.50.0040.00416.77
8.0.30.0040.01417.01
8.0.20.0100.01117.40
8.0.10.0040.00416.93
8.0.00.0140.00816.63
7.4.330.0000.00516.84
7.4.320.0060.00016.47
7.4.300.0030.00316.28
7.4.290.0000.00816.30
7.4.280.0000.00716.38
7.4.270.0000.00616.40
7.4.260.0040.00416.35
7.4.250.0070.00016.46
7.4.240.0030.00516.46
7.4.230.0040.00416.45
7.4.220.0030.01416.43
7.4.210.0160.00316.49
7.4.200.0000.00716.47
7.4.160.0040.01416.48
7.4.150.0170.00017.40
7.4.140.0170.00517.86
7.4.130.0090.01016.39
7.4.120.0090.00816.35
7.4.110.0140.00316.13
7.4.100.0180.00616.16
7.4.90.0040.01216.47
7.4.80.0120.00619.39
7.4.70.0090.00616.43
7.4.60.0040.01416.33
7.4.50.0080.00616.31
7.4.40.0120.00816.24
7.4.30.0110.00616.39
7.4.00.0060.00914.88
7.3.330.0000.00513.25
7.3.320.0000.00613.02
7.3.310.0030.00316.03
7.3.300.0000.00716.18
7.3.290.0110.00416.22
7.3.280.0070.01216.20
7.3.270.0090.00917.40
7.3.260.0070.01016.11
7.3.250.0130.00716.29
7.3.240.0080.01016.23
7.3.230.0160.00316.39
7.3.210.0070.01416.36
7.3.200.0030.01716.16
7.3.190.0070.01016.25
7.3.180.0070.01416.39
7.3.170.0130.00316.18
7.3.160.0130.00316.17
7.3.10.0080.00616.53
7.3.00.0030.00916.63
7.2.330.0070.01116.53
7.2.320.0130.01016.64
7.2.310.0080.00816.51
7.2.300.0060.01716.27
7.2.290.0030.01316.39
7.2.130.0030.00916.96
7.2.120.0030.01016.85
7.2.110.0060.00916.53
7.2.100.0030.01016.88
7.2.90.0030.01017.02
7.2.80.0000.00916.57
7.2.70.0000.01116.70
7.2.60.0030.00916.82
7.2.50.0030.01016.91
7.2.40.0030.00516.69
7.2.30.0000.00916.58
7.2.20.0090.00316.85
7.2.10.0070.00316.78
7.2.00.0040.00817.93
7.1.250.0030.00615.34
7.1.200.0090.00615.79
7.1.100.0120.00318.07
7.1.70.0040.00416.79
7.1.60.0070.01819.19
7.1.50.0110.01116.77
7.1.00.0100.07022.36
7.0.200.0580.01014.65
7.0.60.0170.07321.80
7.0.50.0030.04017.82
7.0.40.0070.07320.21
7.0.30.0200.03720.13
7.0.20.0200.07320.12
7.0.10.0070.08319.96
7.0.00.0000.09020.02
5.6.280.0000.03720.92
5.6.210.0100.06320.66
5.6.200.0100.08318.09
5.6.190.0230.07020.45
5.6.180.0400.05020.56
5.6.170.0200.05020.71
5.6.160.0030.04320.51
5.6.150.0130.05718.12
5.6.140.0030.05018.20
5.6.130.0100.08318.14
5.6.120.0030.04720.99
5.6.110.0070.06721.11
5.6.100.0130.07721.08
5.6.90.0000.09021.09
5.6.80.0170.07320.42
5.5.350.0300.06720.49
5.5.340.0030.08017.93
5.5.330.0030.06720.23
5.5.320.0300.07720.30
5.5.310.0230.04020.23
5.5.300.0100.07717.94
5.5.290.0170.07317.91
5.5.280.0100.08320.77
5.5.270.0030.07320.79
5.5.260.0070.03720.87
5.5.250.0130.08020.58
5.5.240.0030.07020.10

preferences:
34.16 ms | 400 KiB | 5 Q