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; echo $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.60.0200.00018.27
8.3.50.0110.00822.11
8.3.40.0110.00418.56
8.3.30.0040.01518.84
8.3.20.0040.00420.20
8.3.10.0050.00320.66
8.3.00.0040.00421.90
8.2.180.0040.01118.16
8.2.170.0070.00722.96
8.2.160.0100.00322.21
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00421.00
8.2.120.0070.00026.35
8.2.110.0070.00321.02
8.2.100.0000.01217.84
8.2.90.0050.00317.90
8.2.80.0030.00618.06
8.2.70.0060.00317.59
8.2.60.0000.00718.04
8.2.50.0060.00318.09
8.2.40.0050.00220.38
8.2.30.0040.00419.48
8.2.20.0000.00717.86
8.2.10.0040.00418.10
8.2.00.0000.00717.96
8.1.280.0140.00725.92
8.1.270.0130.00621.95
8.1.260.0030.00628.09
8.1.250.0000.00728.09
8.1.240.0000.01022.66
8.1.230.0070.00320.89
8.1.220.0040.00417.77
8.1.210.0000.00718.89
8.1.200.0060.00317.35
8.1.190.0030.00618.93
8.1.180.0000.00818.10
8.1.170.0040.00418.57
8.1.160.0040.00420.70
8.1.150.0040.00418.74
8.1.140.0030.00519.56
8.1.130.0000.00717.52
8.1.120.0040.00417.46
8.1.110.0030.00417.45
8.1.100.0050.00217.46
8.1.90.0030.00517.29
8.1.80.0050.00317.29
8.1.70.0030.00317.32
8.1.60.0040.00417.40
8.1.50.0050.00317.39
8.1.40.0040.00417.47
8.1.30.0050.00317.54
8.1.20.0040.00417.30
8.1.10.0080.00017.41
8.1.00.0000.00817.31
8.0.300.0000.00719.90
8.0.290.0000.00916.88
8.0.280.0030.00318.34
8.0.270.0030.00317.24
8.0.260.0070.00017.21
8.0.250.0000.00616.98
8.0.240.0000.00717.05
8.0.230.0070.00016.92
8.0.220.0050.00216.75
8.0.210.0050.00216.89
8.0.200.0030.00316.97
8.0.190.0000.00916.91
8.0.180.0000.00816.91
8.0.170.0000.00716.82
8.0.160.0050.00216.89
8.0.150.0080.00016.82
8.0.140.0030.00616.79
8.0.130.0070.00013.29
8.0.120.0040.00416.91
8.0.110.0020.00516.80
8.0.100.0040.00416.69
8.0.90.0000.00716.85
8.0.80.0040.01416.82
8.0.70.0070.00016.86
8.0.60.0080.00016.87
8.0.50.0040.00416.85
8.0.30.0100.00917.04
8.0.20.0110.00717.40
8.0.10.0000.00716.90
8.0.00.0110.01016.75
7.4.330.0060.00016.76
7.4.320.0060.00016.37
7.4.300.0060.00016.55
7.4.290.0040.00416.55
7.4.280.0040.00416.50
7.4.270.0040.00416.42
7.4.260.0080.00016.41
7.4.250.0000.00716.45
7.4.240.0000.00716.47
7.4.230.0070.00016.33
7.4.220.0040.01416.43
7.4.210.0100.01016.43
7.4.200.0030.00316.44
7.4.160.0070.01116.36
7.4.150.0120.00617.40
7.4.140.0090.01117.86
7.4.130.0100.00916.41
7.4.120.0050.01216.40
7.4.110.0150.00316.57
7.4.100.0060.01116.52
7.4.90.0100.00616.64
7.4.80.0110.00919.39
7.4.70.0160.00016.49
7.4.60.0070.01016.43
7.4.50.0080.00816.65
7.4.40.0100.00716.54
7.4.30.0070.01316.49
7.4.00.0060.00615.08
7.3.330.0050.00013.09
7.3.320.0030.00313.14
7.3.310.0000.00716.19
7.3.300.0000.00716.23
7.3.290.0110.00516.25
7.3.280.0080.01016.25
7.3.270.0120.00617.40
7.3.260.0100.00716.51
7.3.250.0080.01016.34
7.3.240.0100.00716.23
7.3.230.0090.00916.46
7.3.210.0110.00716.22
7.3.200.0070.01816.37
7.3.190.0090.00616.32
7.3.180.0120.00416.50
7.3.170.0130.00316.46
7.3.160.0150.00016.35
7.2.330.0100.00716.56
7.2.320.0070.01116.55
7.2.310.0170.00016.53
7.2.300.0070.01016.47
7.2.290.0130.00316.61
7.2.60.0030.00716.65
7.2.00.0060.00619.04
7.1.200.0120.00015.71
7.1.100.0070.01018.12
7.1.70.0000.00717.12
7.1.60.0100.00719.19
7.1.50.0030.01516.89
7.1.00.0030.07722.32
7.0.200.0360.00614.85
7.0.60.0130.04721.63
7.0.50.0130.07317.80
7.0.40.0070.05719.98
7.0.30.0200.04020.30
7.0.20.0400.07720.30
7.0.10.0100.03720.13
7.0.00.0100.07320.19
5.6.280.0030.06320.90
5.6.210.0030.08720.54
5.6.200.0030.07018.16
5.6.190.0070.06020.36
5.6.180.0300.08020.27
5.6.170.0270.08020.47
5.6.160.0030.06720.40
5.6.150.0100.07318.14
5.6.140.0130.07318.20
5.6.130.0030.04318.12
5.6.120.0070.04320.98
5.6.110.0030.09020.97
5.6.100.0100.05321.00
5.6.90.0170.05020.96
5.6.80.0030.07720.40
5.5.350.0230.03720.33
5.5.340.0000.07718.04
5.5.330.0130.04720.40
5.5.320.0530.05020.26
5.5.310.0270.04320.16
5.5.300.0100.03717.92
5.5.290.0030.07317.94
5.5.280.0100.08020.89
5.5.270.0100.08320.84
5.5.260.0100.05020.76
5.5.250.0100.08020.58
5.5.240.0000.07720.26

preferences:
87.39 ms | 401 KiB | 5 Q