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> \nEOT; $foobar = <<<EOT <foo>bar</foo> EOT; echo \n echo EOT; 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.0120.00918.40
8.3.50.0150.00618.02
8.3.40.0070.00718.67
8.3.30.0090.00618.85
8.3.20.0080.00020.20
8.3.10.0030.00620.66
8.3.00.0030.00522.04
8.2.180.0070.01318.41
8.2.170.0120.00922.96
8.2.160.0090.00622.03
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00321.00
8.2.120.0040.00426.35
8.2.110.0120.00920.96
8.2.100.0040.00817.80
8.2.90.0050.00318.92
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0060.00317.91
8.2.50.0080.00018.09
8.2.40.0030.00620.57
8.2.30.0000.00819.35
8.2.20.0070.00017.64
8.2.10.0030.00517.79
8.2.00.0000.00717.98
8.1.280.0100.01025.92
8.1.270.0040.00422.06
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0030.00622.40
8.1.230.0080.00417.58
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0080.00417.23
8.1.190.0080.00016.97
8.1.180.0080.00018.10
8.1.170.0030.00618.58
8.1.160.0000.00720.68
8.1.150.0070.00018.80
8.1.140.0040.00419.50
8.1.130.0030.00317.56
8.1.120.0050.00217.33
8.1.110.0050.00217.36
8.1.100.0030.00317.28
8.1.90.0000.00817.35
8.1.80.0000.00717.21
8.1.70.0030.00317.36
8.1.60.0040.00417.45
8.1.50.0000.00817.38
8.1.40.0030.00617.38
8.1.30.0000.00817.58
8.1.20.0040.00417.18
8.1.10.0080.00017.47
8.1.00.0000.00817.25
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0000.00718.28
8.0.270.0000.00717.09
8.0.260.0060.00317.14
8.0.250.0000.00616.96
8.0.240.0040.00416.94
8.0.230.0000.00716.86
8.0.220.0000.00816.89
8.0.210.0070.00016.86
8.0.200.0040.00416.95
8.0.190.0000.00816.86
8.0.180.0070.00016.83
8.0.170.0000.00716.85
8.0.160.0030.00316.82
8.0.150.0030.00316.81
8.0.140.0040.00416.89
8.0.130.0070.00313.45
8.0.120.0000.00716.80
8.0.110.0040.00416.74
8.0.100.0080.00016.82
8.0.90.0070.00016.90
8.0.80.0090.00616.76
8.0.70.0050.00216.74
8.0.60.0030.00516.68
8.0.50.0050.00216.85
8.0.30.0050.01217.08
8.0.20.0090.01017.40
8.0.10.0000.00716.76
8.0.00.0090.01116.64
7.4.330.0030.00316.82
7.4.320.0030.00316.46
7.4.300.0000.00916.37
7.4.290.0040.00416.29
7.4.280.0040.00416.26
7.4.270.0030.00316.40
7.4.260.0060.00316.28
7.4.250.0000.00716.42
7.4.240.0030.00316.47
7.4.230.0050.00316.16
7.4.220.0030.02116.48
7.4.210.0070.00716.49
7.4.200.0000.00716.53
7.4.160.0130.00316.32
7.4.150.0060.01217.40
7.4.140.0110.00817.86
7.4.130.0110.00716.36
7.4.120.0090.01116.36
7.4.110.0100.00616.52
7.4.100.0120.00616.36
7.4.90.0090.01316.52
7.4.80.0100.01019.39
7.4.70.0160.00016.31
7.4.60.0120.00616.49
7.4.50.0130.00316.65
7.4.40.0140.00816.30
7.4.30.0140.00716.20
7.4.00.0080.00914.68
7.3.330.0000.00513.20
7.3.320.0000.00613.20
7.3.310.0070.00016.27
7.3.300.0040.00416.16
7.3.290.0090.00816.18
7.3.280.0110.00716.21
7.3.270.0140.00317.40
7.3.260.0100.00616.44
7.3.250.0110.00816.33
7.3.240.0110.00616.31
7.3.230.0070.01116.39
7.3.210.0110.00816.29
7.3.200.0090.00616.23
7.3.190.0100.00616.11
7.3.180.0000.01616.12
7.3.170.0030.01416.24
7.3.160.0070.00816.13
7.3.120.0080.00914.62
7.3.110.0090.00914.69
7.3.100.0030.01214.67
7.3.90.0080.00814.74
7.3.80.0070.00514.56
7.3.70.0070.00414.75
7.3.60.0060.00514.67
7.3.50.0050.01014.63
7.3.40.0050.00914.61
7.3.30.0060.00414.64
7.3.20.0070.00816.49
7.3.10.0070.00816.61
7.3.00.0070.00416.47
7.2.330.0060.01316.38
7.2.320.0090.01216.21
7.2.310.0100.00716.66
7.2.300.0000.01716.36
7.2.290.0000.01616.23
7.2.250.0060.01214.91
7.2.240.0110.00814.87
7.2.230.0050.01114.85
7.2.220.0060.00814.99
7.2.210.0050.00914.90
7.2.200.0060.00915.08
7.2.190.0050.00914.77
7.2.180.0070.00614.72
7.2.170.0040.00914.94
7.2.160.0030.00914.98
7.2.150.0000.00916.87
7.2.140.0120.00316.89
7.2.130.0030.00916.66
7.2.120.0090.00516.66
7.2.110.0070.00516.67
7.2.100.0060.00416.64
7.2.90.0050.00916.83
7.2.80.0070.00716.59
7.2.70.0080.00516.76
7.2.60.0060.00816.62
7.2.50.0050.00716.64
7.2.40.0060.00816.73
7.2.30.0040.00916.66
7.2.20.0090.00716.82
7.2.10.0060.00716.78
7.2.00.0050.00817.65
7.1.330.0060.00915.49
7.1.320.0050.00515.77
7.1.310.0040.00815.72
7.1.300.0040.00915.66
7.1.290.0080.00715.68
7.1.280.0050.00615.57
7.1.270.0070.00715.65
7.1.260.0040.00815.62
7.1.250.0100.00115.42
7.1.240.0000.01115.41
7.1.230.0040.00815.75
7.1.220.0000.00915.64
7.1.210.0040.00415.60
7.1.200.0020.00915.60
7.1.190.0000.01115.67
7.1.180.0040.00815.60
7.1.170.0030.00915.46
7.1.160.0000.00915.49
7.1.150.0090.00615.80
7.1.140.0070.01015.77
7.1.130.0090.00315.81
7.1.120.0030.01015.73
7.1.110.0100.00315.61
7.1.100.0090.00616.89
7.1.90.0000.01615.86
7.1.80.0030.00915.52
7.1.70.0050.00416.23
7.1.60.0100.00817.44
7.1.50.0070.00916.17
7.1.40.0060.00615.60
7.1.30.0090.00615.80
7.1.20.0090.00415.85
7.1.10.0040.01115.39
7.1.00.0090.03518.92
7.0.330.0060.00615.14
7.0.320.0000.01115.32
7.0.310.0070.00715.33
7.0.300.0030.01015.49
7.0.290.0060.00315.45
7.0.280.0090.00615.33
7.0.270.0030.01315.43
7.0.260.0060.00615.36
7.0.250.0060.00615.27
7.0.240.0040.01115.28
7.0.230.0040.01115.55
7.0.220.0030.00915.44
7.0.210.0030.00615.54
7.0.200.0200.00815.01
7.0.190.0080.00815.20
7.0.180.0000.01215.12
7.0.170.0090.00615.41
7.0.160.0050.00315.47
7.0.150.0000.01015.36
7.0.140.0060.00615.05
7.0.130.0070.01015.50
7.0.120.0100.00315.48
7.0.110.0040.01115.48
7.0.100.0060.00615.49
7.0.90.0030.01015.20
7.0.80.0040.00815.29
7.0.70.0050.00315.26
7.0.60.0130.04218.61
7.0.50.0020.02616.56
7.0.40.0100.02716.78
7.0.30.0180.04016.79
7.0.20.0150.04916.78
7.0.10.0080.04116.92
7.0.00.0030.03316.62
5.6.400.0060.00614.40
5.6.390.0060.00614.37
5.6.380.0000.01614.26
5.6.370.0030.01013.89
5.6.360.0040.00814.29
5.6.350.0070.00414.36
5.6.340.0070.01014.20
5.6.330.0080.00414.45
5.6.320.0100.00314.46
5.6.310.0070.00714.59
5.6.300.0080.00314.20
5.6.290.0030.01014.50
5.6.280.0050.03617.72
5.6.270.0090.00314.08
5.6.260.0100.00714.38
5.6.250.0060.00914.31
5.6.240.0040.00714.27
5.6.230.0100.00314.16
5.6.220.0060.00814.42
5.6.210.0070.04517.55
5.6.200.0070.03916.39
5.6.190.0050.03617.38
5.6.180.0140.02417.46
5.6.170.0150.04617.42
5.6.160.0030.03317.32
5.6.150.0050.04216.18
5.6.140.0050.04816.23
5.6.130.0140.03916.32
5.6.120.0090.02617.65
5.6.110.0080.03517.63
5.6.100.0020.02817.74
5.6.90.0100.04217.65
5.6.80.0090.03717.31
5.6.70.0070.00714.29
5.6.60.0060.00614.20
5.6.50.0040.00714.39
5.6.40.0160.00014.20
5.6.30.0110.00314.21
5.6.20.0060.01014.36
5.6.10.0080.00314.36
5.6.00.0130.00014.34
5.5.380.0030.01014.19
5.5.370.0000.01314.50
5.5.360.0090.00913.98
5.5.350.0240.03717.36
5.5.340.0050.03216.08
5.5.330.0070.02817.40
5.5.320.0250.02317.36
5.5.310.0200.04017.21
5.5.300.0130.01616.21
5.5.290.0090.04215.91
5.5.280.0030.03417.60
5.5.270.0060.04517.49
5.5.260.0020.02817.51
5.5.250.0070.03517.32
5.5.240.0020.02917.10
5.5.230.0090.00614.24
5.5.220.0060.00314.21
5.5.210.0070.00714.06
5.5.200.0040.01113.93
5.5.190.0100.00314.38
5.5.180.0110.00414.11
5.5.170.0060.00614.17
5.5.160.0000.01714.05
5.5.150.0030.00813.78
5.5.140.0000.00913.88
5.5.130.0070.01014.28
5.5.120.0080.00313.87
5.5.110.0080.00414.07
5.5.100.0040.00814.12
5.5.90.0100.00314.26
5.5.80.0060.00613.94
5.5.70.0070.00714.27
5.5.60.0060.00614.06
5.5.50.0060.00313.82
5.5.40.0070.00714.22
5.5.30.0030.00914.06
5.5.20.0070.00713.68
5.5.10.0030.00613.82
5.5.00.0040.01113.80

preferences:
42.62 ms | 400 KiB | 5 Q