3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<EOD Example of string spanning multiple lines using heredoc syntax. EOD; echo $str; $str2 = " Example of string spanning multiple lines using heredoc syntax."; echo $str2; ?>

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.0070.01418.27
8.3.50.0090.00618.08
8.3.40.0090.00618.93
8.3.30.0180.00018.77
8.3.20.0040.00419.11
8.3.10.0120.00621.71
8.3.00.0040.00423.65
8.2.180.0160.00318.54
8.2.170.0090.00622.96
8.2.160.0130.00619.14
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0100.00020.33
8.2.120.0040.00426.35
8.2.110.0070.00421.13
8.2.100.0120.00017.84
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0000.00818.04
8.2.60.0000.00818.04
8.2.50.0040.00418.10
8.2.40.0040.00419.34
8.2.30.0040.00419.23
8.2.20.0000.00717.99
8.2.10.0040.00417.93
8.2.00.0070.00019.43
8.1.280.0040.01125.92
8.1.270.0050.00220.14
8.1.260.0070.00026.35
8.1.250.0100.00728.09
8.1.240.0060.00321.30
8.1.230.0000.01117.53
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0090.00317.23
8.1.180.0050.00518.10
8.1.170.0000.00818.77
8.1.160.0050.00318.73
8.1.150.0000.00718.69
8.1.140.0040.00417.47
8.1.130.0000.00719.09
8.1.120.0040.00417.36
8.1.110.0000.00717.26
8.1.100.0000.00717.38
8.1.90.0080.00017.42
8.1.80.0040.00717.29
8.1.70.0080.00017.30
8.1.60.0050.00217.49
8.1.50.0000.00817.47
8.1.40.0040.00417.33
8.1.30.0090.00017.51
8.1.20.0070.00717.57
8.1.10.0040.00417.40
8.1.00.0060.00317.42
8.0.300.0020.00518.77
8.0.290.0090.00516.58
8.0.280.0070.00018.31
8.0.270.0000.00717.13
8.0.260.0000.00717.16
8.0.250.0000.00716.91
8.0.240.0050.00217.01
8.0.230.0070.00316.85
8.0.220.0000.00716.87
8.0.210.0000.00716.87
8.0.200.0040.00416.83
8.0.190.0040.00416.87
8.0.180.0060.00316.88
8.0.170.0030.00616.86
8.0.160.0070.00016.95
8.0.150.0030.00416.77
8.0.140.0000.00816.75
8.0.130.0050.00013.24
8.0.120.0000.00816.88
8.0.110.0070.00016.84
8.0.100.0040.00416.82
8.0.90.0050.00216.91
8.0.80.0120.00816.86
8.0.70.0070.00016.89
8.0.60.0000.00716.71
8.0.50.0040.00416.89
8.0.30.0100.00917.03
8.0.20.0120.00717.40
8.0.10.0000.00916.88
8.0.00.0100.01116.70
7.4.330.0020.00215.55
7.4.320.0030.00316.54
7.4.300.0040.00416.50
7.4.290.0040.00416.51
7.4.280.0030.00616.44
7.4.270.0000.00716.53
7.4.260.0020.00516.43
7.4.250.0000.00716.47
7.4.240.0040.00416.36
7.4.230.0040.00416.51
7.4.220.0000.00716.34
7.4.210.0080.00916.57
7.4.200.0070.00016.46
7.4.160.0070.01016.46
7.4.140.0090.01017.86
7.4.130.0030.01416.60
7.4.120.0130.00516.40
7.4.110.0120.00416.51
7.4.100.0130.00316.70
7.4.90.0030.01816.39
7.4.80.0110.01119.39
7.4.70.0160.00016.30
7.4.60.0100.01016.52
7.4.50.0090.00616.60
7.4.40.0100.00716.25
7.4.10.0070.00714.66
7.4.00.0060.01114.92
7.3.330.0060.00013.00
7.3.320.0050.00013.16
7.3.310.0000.00716.23
7.3.300.0040.00416.26
7.3.290.0070.00016.16
7.3.280.0040.01116.34
7.3.260.0140.00616.39
7.3.240.0120.00816.43
7.3.230.0110.00616.38
7.3.210.0140.00716.52
7.3.200.0000.01716.24
7.3.190.0100.00716.25
7.3.180.0060.00916.29
7.3.170.0030.01616.42
7.3.160.0040.01216.31
7.3.130.0030.01314.60
7.3.120.0060.00614.61
7.3.110.0100.00714.80
7.3.100.0070.00714.82
7.3.90.0070.00714.43
7.3.80.0090.00415.02
7.3.70.0130.00014.71
7.3.60.0040.00814.60
7.3.50.0080.00314.37
7.3.40.0110.00314.66
7.3.30.0050.00814.80
7.3.20.0120.00316.66
7.3.10.0060.00616.52
7.3.00.0060.00316.36
7.2.330.0170.00516.25
7.2.320.0170.00716.63
7.2.310.0030.01316.55
7.2.300.0090.01516.19
7.2.290.0070.01016.40
7.2.260.0070.01014.83
7.2.250.0030.01414.78
7.2.240.0120.00314.94
7.2.230.0070.00315.10
7.2.220.0100.00614.54
7.2.210.0030.01014.81
7.2.200.0000.01714.64
7.2.190.0100.00314.75
7.2.180.0070.00714.88
7.2.170.0060.00614.70
7.2.160.0000.01614.63
7.2.150.0030.01016.74
7.2.140.0040.00816.85
7.2.130.0040.00716.70
7.2.120.0000.00916.49
7.2.110.0080.00516.63
7.2.100.0100.00316.79
7.2.90.0000.01516.62
7.2.80.0070.01116.43
7.2.70.0230.00715.80
7.2.60.0150.01215.81
7.2.50.0670.00615.76
7.2.40.0180.00915.90
7.2.30.0170.00915.89
7.2.20.0200.00815.68
7.2.10.0250.00415.79
7.2.00.0160.01315.73
7.1.330.0110.00415.75
7.1.320.0080.00415.55
7.1.310.0030.01015.64
7.1.300.0120.00015.61
7.1.290.0030.00515.55
7.1.280.0080.00415.57
7.1.270.0030.00915.59
7.1.260.0070.00715.64
7.1.250.0030.01015.64
7.1.240.0100.00015.63
7.1.230.0040.00815.71
7.1.220.0070.00715.66
7.1.210.0060.00615.57
7.1.200.0020.01115.67
7.1.190.0030.00915.44
7.1.180.0030.01015.77
7.1.170.0230.00314.47
7.1.160.0270.00314.74
7.1.150.0260.00614.70
7.1.140.0210.00714.69
7.1.130.0190.00614.55
7.1.120.0160.01114.52
7.1.110.0170.00814.54
7.1.100.0180.01014.65
7.1.90.0240.00514.59
7.1.80.0220.00714.60
7.1.70.0230.00914.60
7.1.60.0340.01023.67
7.1.50.0380.00923.71
7.1.40.0340.01023.58
7.1.30.0320.00823.71
7.1.20.0250.01123.81
7.1.10.0390.00314.61
7.1.00.0180.00814.71
7.0.330.0070.00715.20
7.0.320.0070.00715.32
7.0.310.0000.01015.27
7.0.300.0040.00415.10
7.0.290.0030.01315.05
7.0.280.0100.00315.07
7.0.270.0000.01415.23
7.0.260.0080.00015.03
7.0.250.0030.00715.05
7.0.240.0070.00715.09
7.0.230.0110.00015.30
7.0.220.0080.00315.29
7.0.210.0040.00415.08
7.0.200.0040.00715.20
7.0.190.0130.00015.40
7.0.180.0030.01015.31
7.0.170.0100.00315.12
7.0.160.0100.00315.36
7.0.150.0030.00915.27
7.0.140.0030.00915.08
7.0.130.0030.00615.19
7.0.120.0040.01115.23
7.0.110.0040.00815.34
7.0.100.0120.00015.01
7.0.90.0000.00815.20
7.0.80.0040.00815.04
7.0.70.0130.00015.30
7.0.60.0040.01115.40
7.0.50.0090.00615.39
7.0.40.0040.00413.42
7.0.30.0050.00513.60
7.0.20.0080.00413.41
7.0.10.0030.01013.17
7.0.00.0040.01113.34
5.6.400.0040.00414.47
5.6.390.0030.01414.28
5.6.380.0070.00714.58
5.6.370.0030.00514.42
5.6.360.0030.01014.38
5.6.350.0000.01014.01
5.6.340.0080.00614.42
5.6.330.0120.00014.43
5.6.320.0000.00914.06
5.6.310.0100.00014.27
5.6.300.0060.00613.98
5.6.290.0040.01114.30
5.6.280.0070.00314.13
5.6.270.0100.00314.07
5.6.260.0000.01414.27
5.6.250.0040.00414.04
5.6.240.0060.00314.18
5.6.230.0060.00614.04
5.6.220.0080.00814.05
5.6.210.0100.00314.02
5.6.200.0000.01214.26
5.6.190.0060.00614.15
5.6.180.0040.00714.16
5.6.170.0080.00314.01
5.6.160.0030.01014.16
5.6.150.0000.00814.14
5.6.140.0030.00514.21
5.6.130.0000.01014.29
5.6.120.0060.00614.26
5.6.110.0000.01214.32
5.6.100.0030.00713.83
5.6.90.0030.01014.14
5.6.80.0080.00413.91
5.6.70.0030.01413.81
5.6.60.0000.01214.14
5.6.50.0000.01114.12
5.6.40.0030.00513.87
5.6.30.0120.00014.30
5.6.20.0030.00613.82
5.6.10.0030.00914.14
5.6.00.0000.00913.98

preferences:
59.02 ms | 401 KiB | 5 Q