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;

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.0100.01018.43
8.3.50.0040.01117.89
8.3.40.0040.01118.79
8.3.30.0110.00418.47
8.3.20.0080.00020.30
8.3.10.0080.00020.56
8.3.00.0040.00423.61
8.2.180.0110.00716.63
8.2.170.0100.01022.96
8.2.160.0210.00022.25
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0070.00020.95
8.2.120.0080.00026.35
8.2.110.0030.00620.28
8.2.100.0060.00617.91
8.2.90.0000.00819.22
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0000.00818.05
8.2.50.0040.00418.09
8.2.40.0050.00320.38
8.2.30.0000.00819.50
8.2.20.0040.00417.81
8.2.10.0050.00318.03
8.2.00.0000.00718.05
8.1.280.0070.01025.92
8.1.270.0090.00021.88
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0040.00423.79
8.1.230.0070.00423.86
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00617.23
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0000.00818.61
8.1.160.0000.00720.63
8.1.150.0000.00720.53
8.1.140.0040.00419.53
8.1.130.0070.00017.55
8.1.120.0070.00017.40
8.1.110.0070.00017.38
8.1.100.0060.00317.31
8.1.90.0040.00417.29
8.1.80.0040.00417.36
8.1.70.0030.00317.29
8.1.60.0000.00817.49
8.1.50.0040.00417.45
8.1.40.0040.00417.35
8.1.30.0040.00417.43
8.1.20.0040.00417.41
8.1.10.0000.00917.58
8.1.00.0050.00317.37
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0000.00718.44
8.0.270.0050.00217.27
8.0.260.0040.00417.32
8.0.250.0000.00717.02
8.0.240.0040.00417.02
8.0.230.0000.00816.85
8.0.220.0000.00716.93
8.0.210.0040.00416.82
8.0.200.0030.00316.82
8.0.190.0000.00716.88
8.0.180.0030.00517.00
8.0.170.0040.00416.93
8.0.160.0030.00316.86
8.0.150.0000.00716.83
8.0.140.0000.00716.89
8.0.130.0060.00313.29
8.0.120.0040.00416.79
8.0.110.0000.00816.79
8.0.100.0040.00416.82
8.0.90.0000.00716.88
8.0.80.0000.01516.86
8.0.70.0000.00716.89
8.0.60.0040.00416.91
8.0.50.0070.00016.78
8.0.30.0070.01017.19
8.0.20.0110.00717.40
8.0.10.0000.00716.90
8.0.00.0120.01016.80
7.4.330.0020.00216.72
7.4.320.0030.00316.53
7.4.300.0000.00616.54
7.4.290.0000.00716.45
7.4.280.0080.00016.57
7.4.270.0000.00616.50
7.4.260.0040.00416.54
7.4.250.0040.00416.41
7.4.240.0080.00016.56
7.4.230.0030.00316.61
7.4.220.0030.01316.32
7.4.210.0000.01516.39
7.4.200.0050.00216.52
7.4.160.0090.00616.42
7.4.150.0150.00317.40
7.4.140.0100.00917.86
7.4.130.0110.01016.42
7.4.120.0070.01216.40
7.4.110.0150.00316.50
7.4.100.0090.00916.48
7.4.90.0040.01716.60
7.4.80.0160.00019.39
7.4.70.0100.00716.59
7.4.60.0060.01216.35
7.4.50.0090.00516.25
7.4.40.0080.00816.32
7.4.30.0120.00916.49
7.4.00.0060.00914.98
7.3.330.0000.00513.09
7.3.320.0020.00212.99
7.3.310.0060.00016.39
7.3.300.0030.00316.16
7.3.290.0070.01016.29
7.3.280.0110.00916.25
7.3.270.0140.00417.40
7.3.260.0080.00816.29
7.3.250.0080.01216.28
7.3.240.0080.00816.26
7.3.230.0170.00016.39
7.3.210.0150.00616.29
7.3.200.0100.01016.28
7.3.190.0130.00316.50
7.3.180.0060.00916.27
7.3.170.0110.00716.30
7.3.160.0060.00916.28
7.3.120.0070.01314.84
7.3.110.0060.01014.83
7.3.100.0030.00914.75
7.3.90.0050.00514.52
7.3.80.0030.01014.64
7.3.70.0120.00314.82
7.3.60.0090.00614.83
7.3.50.0080.00614.69
7.3.40.0030.00914.78
7.3.30.0130.00014.67
7.3.20.0070.00716.73
7.3.10.0040.01116.61
7.3.00.0090.00616.45
7.2.330.0070.01016.59
7.2.320.0130.00316.38
7.2.310.0090.00916.47
7.2.300.0160.00016.66
7.2.290.0080.00816.25
7.2.250.0060.00614.78
7.2.240.0150.00614.91
7.2.230.0100.00614.82
7.2.220.0060.00314.79
7.2.210.0030.00614.83
7.2.200.0060.00914.97
7.2.190.0040.00714.99
7.2.180.0090.00614.70
7.2.170.0110.00314.64
7.2.110.0140.00516.26
7.2.100.0120.00416.53
7.2.90.0150.00416.53
7.2.80.0090.00516.52
7.2.70.0130.00416.95
7.2.60.0080.00816.65
7.2.50.0110.00716.82
7.2.40.0070.01416.48
7.2.30.0120.01216.68
7.2.20.0080.01116.48
7.2.10.0140.00316.78
7.2.00.0040.01218.06
7.1.330.0110.00415.87
7.1.320.0040.00815.26
7.1.310.0030.00715.73
7.1.300.0030.00915.59
7.1.290.0030.00615.70
7.1.280.0000.01515.58
7.1.270.0120.00315.65
7.1.260.0060.00315.60
7.1.230.0070.00715.55
7.1.220.0070.01015.51
7.1.210.0120.00815.61
7.1.200.0080.00515.63
7.1.190.0520.00015.71
7.1.180.0090.00615.81
7.1.170.0130.00015.65
7.1.160.0100.00315.68
7.1.150.0100.00315.30
7.1.140.0270.00315.68
7.1.130.0210.00015.70
7.1.120.0280.00315.58
7.1.110.0100.01415.86
7.1.100.0160.00216.80
7.1.90.0190.00015.54
7.1.80.0120.00315.50
7.1.70.0040.00616.29
7.1.60.0050.01617.58
7.1.50.0100.01316.29
7.1.40.0110.00715.67
7.1.30.0120.00415.79
7.1.20.0040.01315.75
7.1.10.0140.00515.49
7.1.00.0040.04318.88
7.0.310.0140.00015.47
7.0.300.0140.00615.36
7.0.290.0080.00815.29
7.0.280.0100.01014.94
7.0.270.0320.00615.32
7.0.260.0100.00515.46
7.0.250.0070.00715.35
7.0.240.0100.00715.30
7.0.230.0120.00015.27
7.0.220.0150.00415.45
7.0.210.0090.00515.38
7.0.200.0320.00614.90
7.0.190.0150.00015.28
7.0.180.0070.00715.37
7.0.170.0120.00315.38
7.0.160.0120.00615.36
7.0.150.0180.00015.42
7.0.140.0120.00015.38
7.0.130.0090.00615.26
7.0.120.0000.01615.55
7.0.110.0100.00315.23
7.0.100.0270.00415.52
7.0.90.0110.00715.14
7.0.80.0170.00015.36
7.0.70.0140.00315.45
7.0.60.0120.04018.62
7.0.50.0040.02416.63
7.0.40.0080.02516.88
7.0.30.0110.02516.53
7.0.20.0280.02916.61
7.0.10.0070.02616.56
7.0.00.0110.04216.89
5.6.380.0100.00614.52
5.6.370.0100.00514.54
5.6.360.0110.00514.36
5.6.350.0190.00014.50
5.6.340.0120.00414.15
5.6.330.0110.00314.15
5.6.320.0100.00314.02
5.6.310.0070.00714.24
5.6.300.0150.00014.04
5.6.290.0130.00614.10
5.6.280.0090.03817.89
5.6.270.0150.00014.21
5.6.260.0110.00714.41
5.6.250.0120.00314.36
5.6.240.0160.00014.22
5.6.230.0090.00614.30
5.6.220.0130.00014.39
5.6.210.0130.02817.55
5.6.200.0070.04116.25
5.6.190.0080.03817.39
5.6.180.0140.02517.28
5.6.170.0160.03817.42
5.6.160.0100.04317.52
5.6.150.0100.03716.34
5.6.140.0100.02116.32
5.6.130.0090.04216.29
5.6.120.0060.02317.58
5.6.110.0150.04217.69
5.6.100.0080.04617.66
5.6.90.0070.04017.77
5.6.80.0070.04717.31
5.6.70.0110.00814.15
5.6.60.0100.00213.97
5.6.50.0150.00314.27
5.6.40.0180.00414.09
5.6.30.0110.00414.25
5.6.20.0090.00314.26
5.6.10.0030.01014.25
5.6.00.0060.01014.31
5.5.380.0120.00312.79
5.5.370.0080.00812.79
5.5.360.0050.01012.79
5.5.350.0230.03816.55
5.5.340.0100.04215.37
5.5.330.0100.04216.46
5.5.320.0260.02516.55
5.5.310.0160.01916.65
5.5.300.0100.02815.40
5.5.290.0070.02815.40
5.5.280.0070.04516.83
5.5.270.0090.02916.81
5.5.260.0050.02216.83
5.5.250.0100.03316.68
5.5.240.0060.03816.47
5.5.230.0100.00312.79
5.5.220.0120.00312.79
5.5.210.0070.00412.79
5.5.200.0080.00312.79
5.5.190.0080.00412.79
5.5.180.0000.01312.79
5.5.170.0130.00414.28
5.5.160.0100.00312.79
5.5.150.0070.00312.79
5.5.140.0110.00312.79
5.5.130.0100.00312.79
5.5.120.0110.00312.79
5.5.110.0150.00012.79
5.5.100.0080.00812.79
5.5.90.0090.00212.79
5.5.80.0100.00312.79
5.5.70.0070.00712.79
5.5.60.0110.00312.79
5.5.50.0040.00812.79
5.5.40.0110.00312.79
5.5.30.0070.00412.79
5.5.20.0070.00712.79
5.5.10.0070.00712.79
5.5.00.0080.00312.79

preferences:
69.28 ms | 401 KiB | 5 Q