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 $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.0110.01118.43
8.3.50.0140.00521.95
8.3.40.0070.00718.79
8.3.30.0070.00718.84
8.3.20.0040.00420.34
8.3.10.0040.00420.36
8.3.00.0040.00423.65
8.2.180.0100.00716.32
8.2.170.0120.00322.96
8.2.160.0130.00622.12
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.14
8.2.120.0020.00526.35
8.2.110.0090.00019.33
8.2.100.0090.00317.93
8.2.90.0040.00419.36
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0090.00318.09
8.2.40.0060.00320.28
8.2.30.0040.00419.61
8.2.20.0030.00517.74
8.2.10.0000.00718.15
8.2.00.0000.00718.11
8.1.280.0130.00325.92
8.1.270.0080.00022.05
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00620.67
8.1.230.0070.00417.89
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0060.00318.88
8.1.180.0050.00318.10
8.1.170.0040.00418.51
8.1.160.0030.00620.70
8.1.150.0040.00420.65
8.1.140.0050.00319.51
8.1.130.0040.00417.55
8.1.120.0000.00717.32
8.1.110.0040.00417.29
8.1.100.0020.00517.43
8.1.90.0040.00417.29
8.1.80.0050.00317.37
8.1.70.0040.00417.29
8.1.60.0080.00017.49
8.1.50.0080.00017.35
8.1.40.0000.00817.41
8.1.30.0080.00017.62
8.1.20.0070.00017.39
8.1.10.0030.00517.38
8.1.00.0000.00717.30
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0030.00318.48
8.0.270.0040.00417.25
8.0.260.0040.00717.31
8.0.250.0030.00316.95
8.0.240.0040.00417.06
8.0.230.0040.00416.93
8.0.220.0000.00716.89
8.0.210.0030.00316.79
8.0.200.0000.00616.93
8.0.190.0070.00016.82
8.0.180.0070.00016.87
8.0.170.0000.00716.84
8.0.160.0040.00416.96
8.0.150.0050.00316.90
8.0.140.0040.00416.83
8.0.130.0030.00313.27
8.0.120.0030.00516.86
8.0.110.0040.00416.86
8.0.100.0040.00416.75
8.0.90.0000.00816.92
8.0.80.0090.01216.83
8.0.70.0000.00816.73
8.0.60.0070.00017.01
8.0.50.0040.00416.93
8.0.30.0070.00817.20
8.0.20.0130.00517.40
8.0.10.0000.00717.01
8.0.00.0110.01116.79
7.4.330.0050.00016.70
7.4.320.0030.00316.41
7.4.300.0030.00316.43
7.4.290.0030.00316.42
7.4.280.0040.00416.45
7.4.270.0070.00016.31
7.4.260.0000.00816.50
7.4.250.0030.00516.34
7.4.240.0050.00216.34
7.4.230.0040.00416.28
7.4.220.0070.01116.47
7.4.210.0070.01416.38
7.4.200.0030.00316.62
7.4.160.0110.00816.24
7.4.150.0080.00917.40
7.4.140.0170.00217.86
7.4.130.0090.01116.53
7.4.120.0100.00816.44
7.4.110.0140.00716.39
7.4.100.0090.00916.55
7.4.90.0110.00616.34
7.4.80.0120.00919.39
7.4.70.0130.00316.40
7.4.60.0070.01316.70
7.4.50.0100.00716.55
7.4.40.0050.01116.43
7.4.30.0110.01116.46
7.4.00.0060.01014.87
7.3.330.0000.00613.09
7.3.320.0030.00313.09
7.3.310.0030.00516.09
7.3.300.0030.00316.15
7.3.290.0090.00716.25
7.3.280.0090.01116.31
7.3.270.0160.00317.40
7.3.260.0070.01016.26
7.3.250.0110.00816.25
7.3.240.0070.01016.29
7.3.230.0140.00316.39
7.3.210.0090.01216.36
7.3.200.0070.01116.30
7.3.190.0160.00016.47
7.3.180.0100.00716.32
7.3.170.0030.01316.50
7.3.160.0060.00916.35
7.3.120.0060.01314.79
7.3.110.0060.00814.66
7.3.100.0060.00814.64
7.3.90.0090.00414.79
7.3.80.0050.00714.72
7.3.70.0040.00714.78
7.3.60.0050.01014.76
7.3.50.0060.00914.61
7.3.40.0100.00414.73
7.3.30.0050.00714.83
7.3.20.0070.00716.64
7.3.10.0030.01216.45
7.3.00.0040.01116.59
7.2.330.0030.01416.59
7.2.320.0090.00916.57
7.2.310.0140.00716.30
7.2.300.0060.00916.61
7.2.290.0100.01016.36
7.2.250.0090.00814.91
7.2.240.0090.01014.93
7.2.230.0080.00714.98
7.2.220.0080.00514.90
7.2.210.0040.01114.91
7.2.200.0070.00714.99
7.2.190.0060.00914.78
7.2.180.0050.00914.74
7.2.170.0060.00814.95
7.2.160.0060.00914.88
7.2.150.0030.01016.71
7.2.140.0090.00316.63
7.2.130.0060.01116.65
7.2.120.0120.00616.74
7.2.110.0070.01116.87
7.2.100.0060.00616.77
7.2.90.0030.01016.99
7.2.80.0040.01116.88
7.2.70.0060.00916.72
7.2.60.0020.01216.73
7.2.50.0090.00616.84
7.2.40.0070.01016.75
7.2.30.0080.00316.54
7.2.20.0120.00316.74
7.2.10.0100.00616.96
7.2.00.0060.00616.76
7.1.330.0040.01115.64
7.1.320.0070.00615.70
7.1.310.0040.01015.63
7.1.300.0090.00515.61
7.1.290.0070.00715.71
7.1.280.0030.01015.71
7.1.270.0030.01115.50
7.1.260.0050.01015.50
7.1.250.0030.01315.53
7.1.200.0000.00715.78
7.1.100.0160.00018.08
7.1.70.0000.00816.90
7.1.60.0030.02019.19
7.1.50.0100.00316.77
7.1.00.0030.07722.37
7.0.200.0500.00614.73
7.0.60.0200.07021.82
7.0.50.0000.04317.86
7.0.40.0030.04320.24
7.0.30.0130.04320.13
7.0.20.0330.04320.33
7.0.10.0070.05720.11
7.0.00.0100.08020.23
5.6.280.0030.06020.98
5.6.210.0130.07720.64
5.6.200.0030.06718.08
5.6.190.0070.08720.64
5.6.180.0300.03320.43
5.6.170.0230.07020.48
5.6.160.0130.05720.54
5.6.150.0030.09018.12
5.6.140.0130.07318.21
5.6.130.0230.06318.21
5.6.120.0030.04321.12
5.6.110.0100.08020.96
5.6.100.0070.06321.07
5.6.90.0170.07320.97
5.6.80.0030.08020.28
5.5.350.0300.07720.38
5.5.340.0070.06017.92
5.5.330.0100.08020.42
5.5.320.0200.04720.27
5.5.310.0170.04320.34
5.5.300.0030.04717.96
5.5.290.0070.05017.98
5.5.280.0130.07720.80
5.5.270.0030.07720.79
5.5.260.0030.04320.80
5.5.250.0000.07320.61
5.5.240.0000.07320.14

preferences:
24.63 ms | 401 KiB | 5 Q