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; $EOT = <<<EOT <bar>my foobar</bar> EOT; echo $output; echo $foobar; EOT;

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.0000.01518.96
8.3.30.0030.01418.82
8.3.20.0040.00420.35
8.3.10.0040.00420.69
8.3.00.0040.00421.65
8.2.170.0140.00022.96
8.2.160.0110.00421.90
8.2.150.0060.00324.18
8.2.140.0000.00924.66
8.2.130.0000.00820.95
8.2.120.0070.00026.35
8.2.110.0060.00320.34
8.2.100.0110.00017.84
8.2.90.0040.00417.97
8.2.80.0060.00318.15
8.2.70.0060.00317.63
8.2.60.0050.00318.03
8.2.50.0030.00718.09
8.2.40.0000.00720.51
8.2.30.0000.00819.61
8.2.20.0030.00517.68
8.2.10.0000.00718.02
8.2.00.0040.00418.05
8.1.270.0090.00922.14
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0100.00022.08
8.1.230.0000.01122.13
8.1.220.0030.00717.74
8.1.210.0000.00818.93
8.1.200.0000.00917.35
8.1.190.0030.00517.21
8.1.180.0030.00518.10
8.1.170.0040.00418.51
8.1.160.0000.00720.82
8.1.150.0000.00818.93
8.1.140.0000.00819.47
8.1.130.0000.00717.70
8.1.120.0000.00717.49
8.1.110.0000.00717.34
8.1.100.0000.00717.41
8.1.90.0000.00717.33
8.1.80.0030.00517.42
8.1.70.0070.00017.36
8.1.60.0080.00017.49
8.1.50.0040.00417.53
8.1.40.0000.00817.57
8.1.30.0000.00817.60
8.1.20.0040.00417.50
8.1.10.0030.00617.48
8.1.00.0040.00417.48
8.0.300.0020.00519.95
8.0.290.0000.00816.75
8.0.280.0030.00318.50
8.0.270.0030.00317.26
8.0.260.0000.00617.26
8.0.250.0070.00017.05
8.0.240.0040.00416.99
8.0.230.0030.00316.95
8.0.220.0040.00416.98
8.0.210.0000.00716.96
8.0.200.0060.00016.84
8.0.190.0040.00416.98
8.0.180.0060.00316.87
8.0.170.0040.00416.89
8.0.160.0070.00016.98
8.0.150.0000.00716.79
8.0.140.0110.00016.91
8.0.130.0050.00313.37
8.0.120.0000.00816.91
8.0.110.0070.00016.89
8.0.100.0040.00416.97
8.0.90.0000.00717.07
8.0.80.0100.01316.98
8.0.70.0050.00216.82
8.0.60.0040.00417.02
8.0.50.0040.00416.91
8.0.30.0120.00517.18
8.0.20.0080.01017.41
8.0.10.0000.00717.12
8.0.00.0120.00816.71
7.4.330.0000.00516.67
7.4.320.0030.00316.55
7.4.300.0000.00616.59
7.4.290.0030.00316.61
7.4.280.0050.00316.41
7.4.270.0000.00716.61
7.4.260.0040.00416.51
7.4.250.0090.00016.56
7.4.240.0040.00416.52
7.4.230.0000.00716.57
7.4.220.0080.01116.51
7.4.210.0140.00416.44
7.4.200.0000.00716.48
7.4.160.0090.00916.66
7.4.150.0130.00417.40
7.4.140.0080.01017.86
7.4.130.0150.00916.48
7.4.120.0060.01416.47
7.4.110.0110.00716.73
7.4.100.0080.01116.28
7.4.90.0090.00916.29
7.4.80.0150.00319.39
7.4.70.0120.00416.57
7.4.60.0100.00716.51
7.4.50.0050.00816.38
7.4.40.0110.00716.55
7.4.30.0060.01416.46
7.4.00.0060.01114.82
7.3.330.0030.00313.04
7.3.320.0000.00513.13
7.3.310.0000.00716.22
7.3.300.0000.00616.23
7.3.290.0110.00716.32
7.3.280.0080.00916.26
7.3.270.0110.01117.40
7.3.260.0150.00316.51
7.3.250.0090.00916.54
7.3.240.0120.00616.57
7.3.230.0060.01316.39
7.3.210.0040.01816.56
7.3.200.0090.00816.45
7.3.190.0080.00816.42
7.3.180.0130.00316.46
7.3.170.0000.01616.47
7.3.160.0090.00616.33
7.3.120.0080.00914.82
7.3.110.0090.00514.86
7.3.100.0050.01214.79
7.3.90.0050.00814.69
7.3.80.0030.01014.90
7.3.70.0040.01114.79
7.3.60.0070.00714.80
7.3.50.0090.00514.87
7.3.40.0050.01114.83
7.3.30.0040.00714.76
7.3.20.0020.01016.61
7.3.10.0070.00816.76
7.3.00.0100.00216.59
7.2.330.0120.00616.36
7.2.320.0120.00616.61
7.2.310.0050.01116.72
7.2.300.0030.01316.34
7.2.290.0100.00616.43
7.2.250.0100.01015.09
7.2.240.0060.00715.01
7.2.230.0050.01315.02
7.2.220.0060.00814.82
7.2.210.0050.01414.96
7.2.200.0050.00914.96
7.2.190.0090.00614.83
7.2.180.0090.00614.89
7.2.170.0050.01014.66
7.2.160.0000.01414.93
7.2.150.0030.01016.76
7.2.140.0060.00616.64
7.2.130.0030.01016.81
7.2.120.0080.00416.56
7.2.110.0040.00816.71
7.2.100.0060.00916.57
7.2.90.0040.00816.75
7.2.80.0100.00316.73
7.2.70.0100.00716.61
7.2.60.0100.00516.64
7.2.50.0090.00616.88
7.2.40.0060.00316.61
7.2.30.0070.00716.47
7.2.20.0030.01016.94
7.2.10.0090.00616.84
7.2.00.0020.01318.17
7.1.330.0040.00915.77
7.1.320.0020.01115.51
7.1.310.0020.01315.64
7.1.300.0000.01015.80
7.1.290.0030.00515.75
7.1.280.0070.00715.88
7.1.270.0080.00615.62
7.1.260.0030.00715.55
7.1.250.0040.01115.52
7.1.200.0000.01315.56
7.1.100.0090.00417.79
7.1.70.0000.00816.96
7.1.60.0070.01719.19
7.1.50.0070.00316.89
7.1.00.0030.07722.33
7.0.200.0340.00714.36
7.0.60.0170.03321.63
7.0.50.0070.08017.66
7.0.40.0130.08720.36
7.0.30.0070.05020.00
7.0.20.0330.06320.33
7.0.10.0070.04020.04
7.0.00.0070.04020.16
5.6.280.0030.05321.01
5.6.210.0130.06720.64
5.6.200.0070.08018.22
5.6.190.0070.06720.47
5.6.180.0270.08320.32
5.6.170.0200.05020.71
5.6.160.0130.07320.41
5.6.150.0070.08318.09
5.6.140.0030.08318.07
5.6.130.0070.06718.11
5.6.120.0030.04020.99
5.6.110.0100.07721.01
5.6.100.0070.05020.88
5.6.90.0130.05021.12
5.6.80.0100.07320.40
5.5.350.0130.03720.44
5.5.340.0000.06717.95
5.5.330.0000.04720.19
5.5.320.0330.07320.24
5.5.310.0230.05320.33
5.5.300.0070.06017.92
5.5.290.0030.07717.96
5.5.280.0130.07720.85
5.5.270.0070.08720.86
5.5.260.0030.09020.76
5.5.250.0100.08020.71
5.5.240.0030.07720.35

preferences:
36.62 ms | 400 KiB | 5 Q