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.0070.01518.56
8.3.50.0130.00621.88
8.3.40.0040.01118.75
8.3.30.0120.00318.80
8.3.20.0000.00720.21
8.3.10.0080.00020.36
8.3.00.0070.00021.94
8.2.180.0030.01716.75
8.2.170.0070.00722.96
8.2.160.0130.00722.21
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00420.96
8.2.120.0040.00426.35
8.2.110.0070.00321.00
8.2.100.0060.00617.84
8.2.90.0000.00818.15
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0090.00018.05
8.2.50.0000.01018.09
8.2.40.0060.00320.53
8.2.30.0040.00419.50
8.2.20.0040.00417.88
8.2.10.0030.00518.16
8.2.00.0000.00718.13
8.1.280.0090.00625.92
8.1.270.0040.00422.11
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0030.00622.43
8.1.230.0070.00422.74
8.1.220.0080.00017.78
8.1.210.0040.00418.98
8.1.200.0060.00317.35
8.1.190.0030.00517.36
8.1.180.0040.00418.10
8.1.170.0030.00618.34
8.1.160.0000.00820.70
8.1.150.0050.00318.89
8.1.140.0040.00419.58
8.1.130.0030.00317.69
8.1.120.0000.00817.38
8.1.110.0040.00417.46
8.1.100.0000.00717.51
8.1.90.0030.00517.36
8.1.80.0000.00717.32
8.1.70.0030.00317.42
8.1.60.0030.00617.53
8.1.50.0030.00617.52
8.1.40.0090.00017.45
8.1.30.0030.00517.70
8.1.20.0000.00817.51
8.1.10.0050.00317.54
8.1.00.0060.00317.48
8.0.300.0050.00220.04
8.0.290.0050.00316.75
8.0.280.0030.00318.44
8.0.270.0030.00317.31
8.0.260.0030.00617.14
8.0.250.0000.00716.90
8.0.240.0000.00717.05
8.0.230.0040.00416.98
8.0.220.0040.00416.84
8.0.210.0030.00316.84
8.0.200.0030.00316.93
8.0.190.0030.00316.93
8.0.180.0000.00716.89
8.0.170.0040.00416.99
8.0.160.0030.00316.93
8.0.150.0040.00416.95
8.0.140.0040.00416.96
8.0.130.0030.00513.37
8.0.120.0040.00416.83
8.0.110.0040.00416.98
8.0.100.0000.00716.95
8.0.90.0040.00416.76
8.0.80.0100.01116.97
8.0.70.0040.00416.86
8.0.60.0080.00016.79
8.0.50.0000.00816.87
8.0.30.0110.00517.17
8.0.20.0080.01017.40
8.0.10.0000.00717.11
8.0.00.0090.01116.83
7.4.330.0020.00216.83
7.4.320.0000.00616.56
7.4.300.0030.00316.47
7.4.290.0040.00416.56
7.4.280.0000.00716.61
7.4.270.0030.00316.64
7.4.260.0000.01016.60
7.4.250.0050.00316.54
7.4.240.0050.00216.52
7.4.230.0000.00716.68
7.4.220.0130.00516.51
7.4.210.0110.00416.47
7.4.200.0020.00516.54
7.4.160.0150.00616.54
7.4.150.0150.01117.40
7.4.140.0050.01217.86
7.4.130.0090.01016.58
7.4.120.0070.01016.56
7.4.110.0090.01216.44
7.4.100.0070.01116.63
7.4.90.0110.01216.48
7.4.80.0110.01119.39
7.4.70.0100.00616.61
7.4.60.0110.00616.51
7.4.50.0070.00716.58
7.4.40.0060.00916.48
7.4.30.0220.00416.52
7.4.00.0080.01015.05
7.3.330.0030.00312.98
7.3.320.0020.00213.01
7.3.310.0030.00516.26
7.3.300.0000.00616.17
7.3.290.0080.00916.28
7.3.280.0080.01016.29
7.3.270.0130.00417.40
7.3.260.0110.01116.25
7.3.250.0120.00816.39
7.3.240.0120.00516.46
7.3.230.0160.00016.42
7.3.210.0110.00516.37
7.3.200.0060.00916.38
7.3.190.0100.00616.52
7.3.180.0110.00716.50
7.3.170.0080.00816.36
7.3.160.0070.00716.66
7.3.120.0110.00614.67
7.3.110.0110.00514.76
7.3.100.0080.00614.74
7.3.90.0050.01114.84
7.3.80.0080.00714.68
7.3.70.0060.00514.79
7.3.60.0040.00714.90
7.3.50.0070.00914.74
7.3.40.0090.00514.72
7.3.30.0070.00814.82
7.3.20.0050.00716.56
7.3.10.0060.00616.50
7.3.00.0050.00616.43
7.2.330.0140.00316.57
7.2.320.0100.00616.68
7.2.310.0120.01016.60
7.2.300.0080.00816.57
7.2.290.0070.01016.27
7.2.250.0070.01314.77
7.2.240.0080.01114.69
7.2.230.0110.00714.99
7.2.220.0060.01015.09
7.2.210.0050.00915.06
7.2.200.0060.00815.06
7.2.190.0060.00814.83
7.2.180.0050.01014.82
7.2.170.0040.01014.74
7.2.60.0030.00816.75
7.2.00.0030.00719.37
7.1.330.0050.00815.61
7.1.320.0030.00815.67
7.1.310.0060.01015.46
7.1.300.0080.00815.61
7.1.290.0000.01215.76
7.1.280.0010.00715.37
7.1.270.0040.01115.70
7.1.260.0070.00815.71
7.1.200.0100.00315.70
7.1.100.0040.01118.12
7.1.70.0040.00417.16
7.1.60.0090.00919.19
7.1.50.0030.00916.86
7.1.00.0000.08022.54
7.0.200.0710.00314.71
7.0.60.0170.07721.77
7.0.50.0000.04317.66
7.0.40.0030.05019.98
7.0.30.0070.05020.00
7.0.20.0370.07320.17
7.0.10.0030.09020.17
7.0.00.0170.03320.20
5.6.280.0070.07020.86
5.6.210.0130.07720.72
5.6.200.0070.07718.17
5.6.190.0230.07020.39
5.6.180.0230.07020.57
5.6.170.0270.07720.62
5.6.160.0100.08020.71
5.6.150.0130.07018.17
5.6.140.0130.06718.12
5.6.130.0070.08318.16
5.6.120.0130.03720.89
5.6.110.0030.08721.13
5.6.100.0070.04721.02
5.6.90.0070.08321.07
5.6.80.0070.08720.40
5.5.350.0300.03720.40
5.5.340.0030.05718.02
5.5.330.0130.06020.56
5.5.320.0230.06720.27
5.5.310.0130.04720.28
5.5.300.0100.03717.98
5.5.290.0030.06317.98
5.5.280.0030.07320.65
5.5.270.0170.07320.76
5.5.260.0030.04020.82
5.5.250.0030.08320.78
5.5.240.0070.07320.35

preferences:
56.76 ms | 401 KiB | 5 Q