3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lorem_outside_text = ''; //intialize it as empty string for ($i = 0; $i <= 5; $i++) { $lorem_outside_text .= "lorem\n"; } echo $lorem_outside_text; ?>

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.0.30.0110.00816.96
8.0.20.0080.01417.40
8.0.00.0090.01016.76
7.4.160.0070.00916.56
7.4.140.0080.01017.86
7.4.130.0070.01016.48
7.4.120.0100.00916.46
7.4.110.0050.01116.39
7.4.100.0100.00616.42
7.4.90.0140.00716.27
7.4.80.0130.00319.39
7.4.70.0060.01616.31
7.4.60.0090.00916.36
7.4.50.0060.01316.15
7.4.40.0030.01516.30
7.4.30.0110.01116.14
7.4.20.0090.01216.03
7.4.10.0110.00815.68
7.4.00.0050.01315.36
7.3.260.0090.01116.39
7.3.240.0080.01116.47
7.3.230.0060.00916.50
7.3.210.0070.01016.25
7.3.200.0060.01016.31
7.3.190.0030.01316.19
7.3.180.0000.01716.27
7.3.170.0100.00716.06
7.3.160.0190.01516.39
7.3.150.0140.00716.21
7.3.140.0030.01516.03
7.3.130.0100.00815.39
7.3.120.0040.01315.66
7.3.110.0050.01115.43
7.3.100.0070.00915.64
7.3.90.0060.01015.45
7.3.80.0090.00615.35
7.3.70.0060.00915.42
7.3.60.0050.01215.65
7.3.50.0080.00515.31
7.3.40.0060.00915.49
7.3.30.0060.00915.31
7.3.20.0100.00416.38
7.3.10.0110.00616.51
7.3.00.0130.00816.34
7.2.330.0030.01416.78
7.2.320.0060.01216.43
7.2.310.0100.01016.43
7.2.300.0140.00416.36
7.2.290.0200.01016.04
7.2.280.0070.01516.38
7.2.270.0070.01116.66
7.2.260.0110.00815.80
7.2.250.0100.00615.86
7.2.240.0080.00915.69
7.2.230.0060.01215.87
7.2.220.0080.00815.72
7.2.210.0080.00615.77
7.2.200.0030.01415.82
7.2.190.0090.00915.76
7.2.180.0040.00915.90
7.2.170.0100.00815.70
7.2.160.0080.00815.72
7.2.150.0090.00716.71
7.2.140.0090.00716.75
7.2.130.0190.00816.56
7.2.120.0090.00616.78
7.2.110.0090.00716.80
7.2.100.0100.00616.78
7.2.90.0060.01016.71
7.2.80.0290.00915.77
7.2.70.0360.01015.96
7.2.60.0380.01116.12
7.2.50.0450.01215.91
7.2.40.0350.00816.15
7.2.30.0380.00716.28
7.2.20.0550.01116.02
7.2.10.0470.00916.21
7.2.00.0620.01316.02
7.1.330.0110.00715.57
7.1.320.0070.00915.70
7.1.310.0130.00515.56
7.1.300.0080.00815.75
7.1.290.0060.01015.66
7.1.280.0060.00815.51
7.1.270.0090.00515.60
7.1.260.0090.01015.35
7.1.250.0060.01215.53
7.1.240.0050.01015.50
7.1.230.0110.00315.65
7.1.220.0090.00815.46
7.1.210.0140.00315.45
7.1.200.0050.00615.56
7.1.190.0290.00714.84
7.1.180.0400.00914.78
7.1.170.0370.00814.89
7.1.160.0340.00614.93
7.1.150.0360.00814.79
7.1.140.0370.00614.88
7.1.130.0530.00514.94
7.1.120.0400.00714.89
7.1.110.0410.00714.90
7.1.100.0270.00914.83
7.1.90.0340.00814.87
7.1.80.0330.00714.79
7.1.70.0430.01014.98
7.1.60.0420.00920.72
7.1.50.0530.00220.90
7.1.40.0540.00721.00
7.1.30.0440.00920.90
7.1.20.0590.00820.67
7.1.10.0480.00514.91
7.1.00.0330.00814.87
7.0.330.0120.00815.24
7.0.320.0110.00515.16
7.0.310.0060.00515.29
7.0.300.0090.00515.14
7.0.290.0060.00715.37
7.0.280.0040.01015.15
7.0.270.0100.00615.10
7.0.260.0190.00815.06
7.0.250.0060.00815.12
7.0.240.0090.00715.26
7.0.230.0070.01115.18
7.0.220.0070.01115.31
7.0.210.0100.00215.21
7.0.200.0080.00515.20
7.0.190.0110.00615.28
7.0.180.0090.00615.31
7.0.170.0080.00415.13
7.0.160.0060.00615.41
7.0.150.0030.01215.09
7.0.140.0120.00315.05
7.0.130.0090.00915.11
7.0.120.0050.01015.21
7.0.110.0120.00615.33
7.0.100.0050.00815.20
7.0.90.0160.00015.04
7.0.80.0180.00715.31
7.0.70.0060.00915.26
7.0.60.0150.00415.11
7.0.50.0110.00615.10
7.0.40.0090.00614.09
7.0.30.0070.00714.17
7.0.20.0120.00514.12
7.0.10.0100.00814.14
7.0.00.0050.01314.22
5.6.400.0090.01115.15
5.6.390.0050.00815.12
5.6.380.0070.00815.25
5.6.370.0080.00915.38
5.6.360.0080.00515.22
5.6.350.0040.01215.12
5.6.340.0080.00715.31
5.6.330.0080.01415.29
5.6.320.0110.00314.95
5.6.310.0080.00615.19
5.6.300.0030.01315.14
5.6.290.0060.00814.92
5.6.280.0080.01114.97
5.6.270.0020.01615.08
5.6.260.0030.01415.03
5.6.250.0130.00615.25
5.6.240.0080.01115.05
5.6.230.0050.01315.07
5.6.220.0070.01515.10
5.6.210.0090.00915.03
5.6.200.0070.01315.12
5.6.190.0040.01015.12
5.6.180.0090.00814.97
5.6.170.0150.00414.96
5.6.160.0030.01115.05
5.6.150.0090.00915.13
5.6.140.0050.01114.97
5.6.130.0020.01415.00
5.6.120.0090.01015.15
5.6.110.0090.01014.85
5.6.100.0100.01015.21
5.6.90.0030.01315.22
5.6.80.0050.01014.81
5.6.70.0080.00815.01
5.6.60.0070.01014.99
5.6.50.0080.00914.96
5.6.40.0050.01115.00
5.6.30.0110.00715.08
5.6.20.0080.01315.11
5.6.10.0150.00815.05
5.6.00.0140.01014.79