3v4l.org

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

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.40.0070.00718.54
8.3.30.0100.00320.35
8.3.20.0050.00220.24
8.3.10.0060.00322.10
8.3.00.0030.00622.43
8.2.170.0170.00318.79
8.2.160.0150.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0100.00726.16
8.2.120.0080.00019.54
8.2.110.0090.00022.07
8.2.100.0090.00317.59
8.2.90.0000.00719.08
8.2.80.0000.00819.21
8.2.70.0000.00817.63
8.2.60.0060.00317.68
8.2.50.0000.00818.07
8.2.40.0100.00018.01
8.2.30.0060.00318.07
8.2.20.0000.00717.52
8.2.10.0000.00817.62
8.2.00.0120.00017.61
8.1.270.0060.00324.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0080.00323.76
8.1.230.0040.00819.03
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0100.00017.22
8.1.190.0030.00617.39
8.1.180.0040.00419.01
8.1.170.0030.00518.38
8.1.160.0040.00422.14
8.1.150.0040.00418.60
8.1.140.0070.00017.29
8.1.130.0000.00617.88
8.1.120.0070.00017.38
8.1.110.0040.00417.25
8.1.100.0000.00817.30
8.1.90.0040.00417.34
8.1.80.0030.00317.28
8.1.70.0070.00017.38
8.1.60.0040.00417.43
8.1.50.0000.00817.43
8.1.40.0000.00817.37
8.1.30.0040.00417.44
8.1.20.0040.00417.63
8.1.10.0040.00417.43
8.1.00.0040.00417.23
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0060.00318.23
8.0.270.0050.00317.18
8.0.260.0000.00716.82
8.0.250.0070.00016.92
8.0.240.0050.00316.95
8.0.230.0030.00316.93
8.0.220.0040.00416.88
8.0.210.0070.00016.84
8.0.200.0030.00316.96
8.0.190.0000.00716.95
8.0.180.0040.00416.87
8.0.170.0040.00416.88
8.0.160.0040.00316.75
8.0.150.0000.00716.79
8.0.140.0080.00016.84
8.0.130.0050.00013.28
8.0.120.0000.00816.86
8.0.110.0000.00716.81
8.0.100.0040.00416.73
8.0.90.0030.00316.95
8.0.80.0170.00016.89
8.0.70.0000.00716.82
8.0.60.0040.00416.86
8.0.50.0040.00316.91
8.0.30.0080.01017.09
8.0.20.0070.01117.40
8.0.10.0050.00216.90
8.0.00.0100.01116.84
7.4.330.0030.00315.00
7.4.320.0000.00616.57
7.4.300.0030.00316.30
7.4.290.0030.00316.29
7.4.280.0050.00216.47
7.4.270.0030.00316.43
7.4.260.0030.00313.25
7.4.250.0000.00816.40
7.4.240.0030.00416.47
7.4.230.0030.00316.50
7.4.220.0030.01416.40
7.4.210.0080.00616.48
7.4.200.0070.00016.32
7.4.190.0070.00016.31
7.4.160.0030.01216.54
7.4.150.0070.01517.40
7.4.140.0060.01117.86
7.4.130.0150.00316.47
7.4.120.0100.00716.47
7.4.110.0060.01016.22
7.4.100.0090.00916.33
7.4.90.0030.01416.62
7.4.80.0090.01219.39
7.4.70.0120.00316.37
7.4.60.0130.00916.18
7.4.50.0030.00516.31
7.4.40.0000.01522.77
7.4.30.0150.00516.34
7.3.330.0000.00612.95
7.3.320.0030.00313.04
7.3.310.0000.00716.29
7.3.300.0030.00316.10
7.3.290.0110.00716.22
7.3.280.0030.01316.17
7.3.270.0140.00317.40
7.3.260.0070.01016.13
7.3.250.0120.00716.34
7.3.240.0140.00316.25
7.3.230.0170.00016.39
7.3.210.0130.00316.25
7.3.200.0140.00319.39
7.3.190.0060.00916.33
7.3.180.0040.01116.25
7.3.170.0060.00916.29
7.3.160.0050.01016.26
7.2.330.0040.01416.32
7.2.320.0170.00316.30
7.2.310.0100.00616.27
7.2.300.0070.01416.22
7.2.290.0060.01016.55
7.0.70.1230.06320.05
7.0.60.0730.05519.95
7.0.50.0720.05719.12
7.0.40.0850.05820.16
7.0.30.0700.07020.13
7.0.20.0820.05320.15
7.0.10.0650.05520.29
7.0.00.0800.06820.28
5.6.220.1200.05720.62
5.6.210.0570.05820.53
5.6.200.0680.07219.65
5.6.190.0570.07820.73
5.6.180.0420.05320.78
5.6.170.0480.07320.85
5.6.160.0500.06320.75
5.6.150.0650.06719.62
5.6.140.0700.06019.62
5.6.130.0630.06319.60
5.6.120.0750.06721.02
5.6.110.0680.06821.04
5.6.100.0700.04321.08
5.6.90.0600.05021.08
5.6.80.0630.07020.35
5.6.70.1920.04820.52
5.6.60.0900.06020.54
5.6.50.1070.04720.41
5.6.40.1170.06020.38
5.6.30.1270.05020.39
5.6.20.1170.06020.44
5.6.10.1200.05320.52
5.6.00.1130.06020.44
5.5.360.1300.05320.34
5.5.350.0680.07220.47
5.5.340.0670.05019.43
5.5.330.0680.07020.69
5.5.320.0230.04520.56
5.5.310.0720.06520.61
5.5.300.0650.05719.34
5.5.290.0630.07519.39
5.5.280.0370.05720.89
5.5.270.0570.06820.84
5.5.260.0600.05320.70
5.5.250.0630.04820.71
5.5.240.0680.05520.18
5.5.230.1100.06020.36
5.5.220.1070.06320.30
5.5.210.1130.05720.29
5.5.200.1270.04720.34
5.5.190.1130.06020.27
5.5.180.1200.05020.21
5.5.160.1130.05720.32
5.5.150.1170.05020.05
5.5.140.1100.05720.14
5.5.130.1030.06020.29
5.5.120.0930.05020.16
5.5.110.0870.05720.31
5.5.100.0930.05320.24
5.5.90.1070.05720.15
5.5.80.1070.05720.17
5.5.70.1000.05320.01
5.5.60.0870.05320.11
5.5.50.1100.05720.12
5.5.40.1300.04720.14
5.5.30.1030.06020.17
5.5.20.1100.05320.21
5.5.10.1070.06020.18
5.5.00.1230.07320.18
5.4.450.1380.05719.41
5.4.440.1570.04219.43
5.4.430.1350.04819.47
5.4.420.1600.04019.42
5.4.410.1450.05019.21
5.4.400.0880.03819.15
5.4.390.0580.05819.09
5.4.380.0730.04719.12
5.4.370.1200.05219.10
5.4.360.1500.04518.95
5.4.350.1330.04218.92
5.4.340.1500.04818.95
5.4.320.1480.06218.99
5.4.310.1580.04719.03
5.4.300.1550.04719.13
5.4.290.1620.04519.19
5.4.280.1420.04719.05
5.4.270.1430.04018.89
5.4.260.1250.04218.93
5.4.250.0900.05519.16
5.4.240.0470.05519.18
5.4.230.0600.04719.19
5.4.220.0650.05819.01
5.4.210.1350.04019.12
5.4.200.1350.04319.02
5.4.190.1520.04219.12
5.4.180.1520.04319.10
5.4.170.1400.04219.10
5.4.160.1400.04518.96
5.4.150.1430.04819.04
5.4.140.1350.04516.37
5.4.130.1350.04516.43
5.4.120.1630.04516.35
5.4.110.1550.05016.42
5.4.100.1370.04316.26
5.4.90.1500.05216.32
5.4.80.1550.04216.23
5.4.70.1450.04316.35
5.4.60.1470.04016.39
5.4.50.1370.04216.29
5.4.40.1270.04816.26
5.4.30.1480.04016.32
5.4.20.1350.04016.40
5.4.10.1330.03816.42
5.4.00.1480.04515.78
5.3.290.1420.04214.58
5.3.280.1430.04314.57
5.3.270.1430.04214.55
5.3.260.1530.04514.54
5.3.250.1530.04514.58
5.3.240.1570.05214.52
5.3.230.1420.04014.49
5.3.220.1480.04814.39
5.3.210.1430.04314.50
5.3.200.1520.05014.53
5.3.190.1550.04814.42
5.3.180.1470.04014.40
5.3.170.1320.05014.48
5.3.160.1530.04514.41
5.3.150.1530.04714.50
5.3.140.1480.04814.50
5.3.130.1530.04814.47
5.3.120.1620.04514.53
5.3.110.1380.04214.51
5.3.100.1520.04513.93
5.3.90.1420.04513.92
5.3.80.1420.04313.87
5.3.70.1450.04213.90
5.3.60.1400.04013.97
5.3.50.1350.05013.89
5.3.40.1530.04313.77
5.3.30.1480.04013.82
5.3.20.1350.04713.70
5.3.10.1480.04713.55
5.3.00.1380.04713.51
5.2.170.1070.03711.08
5.2.160.1120.03310.99
5.2.150.1300.03711.24
5.2.140.1270.03811.10
5.2.130.1380.03311.08
5.2.120.1300.03711.10
5.2.110.1320.03811.00
5.2.100.1200.04010.96
5.2.90.1230.04211.16
5.2.80.1280.03711.03
5.2.70.1270.04310.98
5.2.60.1300.03310.99
5.2.50.1300.03211.00
5.2.40.0950.03710.93
5.2.30.0980.03210.86
5.2.20.1020.03310.90
5.2.10.1000.03710.89
5.2.00.1030.03510.74
5.1.60.1000.0309.95
5.1.50.0980.03210.05
5.1.40.1030.03310.00
5.1.30.1070.03310.28
5.1.20.0980.02810.23
5.1.10.1130.0259.99
5.1.00.1070.03310.06
5.0.50.0780.0278.49
5.0.40.0780.0228.42
5.0.30.0300.0438.23
5.0.20.0500.0238.25
5.0.10.0520.0288.23
5.0.00.0480.0378.20
4.4.90.0470.0138.13
4.4.80.0480.0178.13
4.4.70.0580.0188.13
4.4.60.0500.0188.13
4.4.50.0450.0228.13
4.4.40.0500.0338.13
4.4.30.0430.0208.13
4.4.20.0470.0188.13
4.4.10.0470.0178.13
4.4.00.0530.0358.13
4.3.110.0470.0178.13
4.3.100.0500.0178.13
4.3.90.0280.0228.13
4.3.80.0220.0458.13
4.3.70.0200.0178.13
4.3.60.0230.0158.13
4.3.50.0270.0288.13
4.3.40.0230.0288.13
4.3.30.0100.0228.13
4.3.20.0100.0278.13
4.3.10.0120.0288.13
4.3.00.0120.0288.13

preferences:
45.45 ms | 400 KiB | 5 Q