3v4l.org

run code in 300+ PHP versions simultaneously
<?php $all_lines = file('http://www.example.com/'); foreach ($all_lines as $line_num => $line) { echo "Line No.-{$line_num}: " . htmlspecialchars($line) . "<br />\n"; } ?> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.DXqosmX3.dpuf

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.0110.00418.92
8.3.50.0180.00319.95
8.3.40.0040.01219.09
8.3.30.0110.00319.22
8.3.20.0000.00820.54
8.3.10.0040.00423.78
8.3.00.0060.00319.76
8.2.180.0070.00716.63
8.2.170.0130.00322.96
8.2.160.0110.00420.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00020.77
8.2.110.0030.00720.77
8.2.100.0040.00818.34
8.2.90.0080.00019.32
8.2.80.0080.00017.97
8.2.70.0060.00317.75
8.2.60.0030.00518.18
8.2.50.0070.00318.07
8.2.40.0000.00818.47
8.2.30.0050.00218.22
8.2.20.0000.00817.90
8.2.10.0000.00718.27
8.2.00.0040.00417.90
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00522.15
8.1.230.0070.00419.38
8.1.220.0000.00817.89
8.1.210.0050.00318.77
8.1.200.0050.00817.47
8.1.190.0080.00017.38
8.1.180.0080.00018.10
8.1.170.0000.00818.90
8.1.160.0000.00722.23
8.1.150.0040.00419.21
8.1.140.0040.00417.68
8.1.130.0030.00318.04
8.1.120.0030.00417.61
8.1.110.0000.00817.57
8.1.100.0070.00017.52
8.1.90.0000.00717.72
8.1.80.0080.00317.61
8.1.70.0040.00417.59
8.1.60.0040.00717.62
8.1.50.0020.00517.61
8.1.40.0040.00417.48
8.1.30.0040.00417.80
8.1.20.0040.00417.70
8.1.10.0040.00417.66
8.1.00.0040.00417.45
8.0.300.0050.00318.77
8.0.290.0040.00416.88
8.0.280.0030.00318.72
8.0.270.0040.00417.47
8.0.260.0040.00417.50
8.0.250.0040.00417.15
8.0.240.0000.00817.15
8.0.230.0000.00717.13
8.0.220.0070.00017.21
8.0.210.0080.00017.07
8.0.200.0000.00617.09
8.0.190.0050.00317.14
8.0.180.0050.00217.13
8.0.170.0030.00617.18
8.0.160.0040.00417.00
8.0.150.0000.00916.96
8.0.140.0090.00017.01
8.0.130.0000.00613.66
8.0.120.0030.00517.20
8.0.110.0050.00317.25
8.0.100.0000.00817.20
8.0.90.0040.00417.05
8.0.80.0060.01017.08
8.0.70.0000.00817.23
8.0.60.0080.00017.15
8.0.50.0050.00217.20
8.0.30.0110.00917.26
8.0.20.0100.01017.46
8.0.10.0000.00817.22
8.0.00.0150.00717.02
7.4.330.0030.00315.47
7.4.320.0060.00016.71
7.4.300.0030.00316.89
7.4.290.0030.00316.75
7.4.280.0090.00016.80
7.4.270.0070.00016.74
7.4.260.0040.00416.84
7.4.250.0040.00416.79
7.4.240.0030.00516.79
7.4.230.0040.00416.92
7.4.220.0160.01016.70
7.4.210.0070.00716.79
7.4.200.0040.00416.75
7.4.160.0140.00416.75
7.4.150.0150.00617.40
7.4.140.0100.01017.86
7.4.130.0130.00616.78
7.4.120.0130.00816.82
7.4.110.0110.00716.79
7.4.100.0220.00316.62
7.4.90.0150.00416.83
7.4.80.0120.00619.39
7.4.70.0160.00316.63
7.4.60.0140.00416.53
7.4.50.0040.00416.69
7.4.40.0060.01116.68
7.4.30.0090.00916.65
7.4.00.0060.01015.13
7.3.330.0060.00013.50
7.3.320.0000.00513.50
7.3.310.0000.00716.44
7.3.300.0070.00016.34
7.3.290.0000.01416.44
7.3.280.0060.01316.52
7.3.270.0060.01917.40
7.3.260.0080.00816.77
7.3.250.0090.00916.48
7.3.240.0030.01516.78
7.3.230.0090.00916.41
7.3.210.0100.01016.66
7.3.200.0060.01219.39
7.3.190.0170.00716.50
7.3.180.0110.00616.41
7.3.170.0120.00816.52
7.3.160.0080.00816.49
7.3.120.0120.00315.10
7.3.110.0070.01014.92
7.3.100.0090.00614.68
7.3.90.0000.01614.80
7.3.80.0060.00615.10
7.3.70.0040.01115.02
7.3.60.0030.00715.13
7.3.50.0000.01114.82
7.3.40.0070.00715.10
7.3.30.0060.00615.14
7.3.20.0090.00616.66
7.3.10.0050.00916.81
7.3.00.0080.00216.51
7.2.330.0120.01216.76
7.2.320.0060.01216.57
7.2.310.0030.02116.96
7.2.300.0090.00916.77
7.2.290.0070.01016.70
7.2.250.0100.01015.43
7.2.240.0170.00315.43
7.2.230.0030.01315.26
7.2.220.0100.00615.38
7.2.210.0030.01014.89
7.2.200.0030.01415.17
7.2.190.0030.01215.02
7.2.180.0060.01015.38
7.2.170.0080.00815.05
7.2.130.0060.00917.06
7.2.120.0070.00716.96
7.2.110.0030.01217.17
7.2.100.0100.00617.20
7.2.90.0080.00416.85
7.2.80.0030.01317.12
7.2.70.0030.01016.95
7.2.60.0110.00916.75
7.2.50.0030.01017.15
7.2.40.0000.01417.18
7.2.30.0030.01317.18
7.2.20.0080.00817.11
7.2.10.0090.00617.07
7.2.00.0070.00918.17
7.1.330.0040.01015.93
7.1.320.0060.00816.10
7.1.310.0090.00615.98
7.1.300.0030.01015.98
7.1.290.0030.00916.18
7.1.280.0070.01015.96
7.1.270.0060.00916.00
7.1.260.0070.00715.63
7.1.250.0070.00315.89
7.1.200.0100.00316.06
7.1.100.0070.00718.25
7.1.70.0070.00017.32
7.1.60.0100.01419.46
7.1.50.0190.00617.10
7.1.00.0030.07722.62
7.0.200.0000.00916.98
7.0.140.0000.07322.31
7.0.60.0070.06720.14
7.0.50.0070.07018.32
7.0.40.0100.05720.54
7.0.30.0370.07320.59
7.0.20.0330.07320.50
7.0.10.0100.08320.52
7.0.00.0030.08020.51
5.6.280.0070.06721.36
5.6.210.0130.04321.12
5.6.200.0030.04018.57
5.6.190.0030.04321.06
5.6.180.0230.03721.01
5.6.170.0170.04320.88
5.6.160.0100.08020.87
5.6.150.0030.09018.66
5.6.140.0030.08718.48
5.6.130.0070.04018.51
5.6.120.0230.06721.25
5.6.110.0000.09021.52
5.6.100.0100.08321.52
5.6.90.0070.04021.45
5.6.80.0170.07720.80
5.5.350.0200.08320.81
5.5.340.0100.08318.32
5.5.330.0200.07020.74
5.5.320.0430.06320.63
5.5.310.0370.06320.69
5.5.300.0100.08018.35
5.5.290.0070.03718.25
5.5.280.0070.06021.20
5.5.270.0230.06321.24
5.5.260.0100.08321.24
5.5.250.0100.07721.10
5.5.240.0070.03020.52
5.4.450.0200.05019.57
5.4.440.0370.03719.62
5.4.430.0270.05719.73
5.4.420.0030.05019.73
5.4.410.0170.04719.42
5.4.400.0200.04719.34
5.4.390.0500.03319.46
5.4.380.0470.05019.10
5.4.370.0270.07018.77
5.4.360.0300.05318.93
5.4.350.0300.07318.94
5.4.340.0470.05318.92
5.4.320.0070.03712.68
5.4.310.0070.04312.68
5.4.300.0100.04212.68
5.4.290.0060.04012.68
5.4.280.0050.03512.57
5.4.270.0070.03512.57
5.4.260.0060.03712.57
5.4.250.0060.03812.57
5.4.240.0040.03712.57
5.4.230.0070.03612.57
5.4.220.0080.03912.57
5.4.210.0040.03712.56
5.4.200.0030.04112.56
5.4.190.0050.04212.56
5.4.180.0100.03212.56
5.4.170.0070.03612.57
5.4.160.0090.03412.56
5.4.150.0050.03912.56
5.4.140.0060.03612.25
5.4.130.0060.03512.23
5.4.120.0040.03712.19
5.4.110.0070.03412.19
5.4.100.0060.03512.19
5.4.90.0050.03712.19
5.4.80.0080.03412.18
5.4.70.0060.03612.18
5.4.60.0050.03712.18
5.4.50.0100.03212.18
5.4.40.0070.03512.17
5.4.30.0070.03612.16
5.4.20.0090.03312.17
5.4.10.0060.03412.17
5.4.00.0040.03711.66
5.3.290.0060.03912.88
5.3.280.0060.03712.81
5.3.270.0060.04112.82
5.3.260.0040.04012.82
5.3.250.0080.03912.82
5.3.240.0060.04312.82
5.3.230.0070.03612.82
5.3.220.0070.03512.79
5.3.210.0060.03912.78
5.3.200.0070.03512.78
5.3.190.0080.03612.79
5.3.180.0040.03812.78
5.3.170.0060.03612.78
5.3.160.0060.03712.78
5.3.150.0090.03412.78
5.3.140.0070.03612.77
5.3.130.0080.05112.77
5.3.120.0060.04712.76
5.3.110.0070.03812.76
5.3.100.0100.04112.25
5.3.90.0040.04012.24
5.3.80.0070.03612.23
5.3.70.0070.03612.23
5.3.60.0090.03612.21
5.3.50.0100.04212.16
5.3.40.0090.03712.16
5.3.30.0080.03312.12
5.3.20.0040.03711.90
5.3.10.0090.03211.87
5.3.00.0080.03511.85
5.2.170.0070.0289.36
5.2.160.0040.0309.36
5.2.150.0060.0329.36
5.2.140.0040.0369.36
5.2.130.0090.0409.31
5.2.120.0080.0259.32
5.2.110.0050.0299.32
5.2.100.0060.0269.32
5.2.90.0040.0309.32
5.2.80.0050.0309.32
5.2.70.0060.0299.31
5.2.60.0030.0319.27
5.2.50.0030.0339.23
5.2.40.0040.0369.21
5.2.30.0040.0309.18
5.2.20.0030.0319.17
5.2.10.0040.0309.08
5.2.00.0060.0288.93
5.1.60.0050.0248.21
5.1.50.0030.0268.21
5.1.40.0050.0238.20
5.1.30.0020.0278.55
5.1.20.0060.0248.56
5.1.10.0060.0248.29
5.1.00.0040.0298.29
5.0.50.0060.0236.77
5.0.40.0060.0256.63
5.0.30.0060.0366.44
5.0.20.0050.0236.39
5.0.10.0040.0226.37
5.0.00.0040.0386.36
4.4.90.0020.0164.77
4.4.80.0060.0174.75
4.4.70.0050.0154.75
4.4.60.0010.0174.75
4.4.50.0030.0164.77
4.4.40.0030.0334.76
4.4.30.0030.0164.76
4.4.20.0020.0174.85
4.4.10.0070.0184.85
4.4.00.0030.0254.79
4.3.110.0020.0164.69
4.3.100.0020.0154.69
4.3.90.0050.0124.65
4.3.80.0030.0244.64
4.3.70.0030.0144.64
4.3.60.0040.0144.64
4.3.50.0020.0194.64
4.3.40.0030.0274.61
4.3.30.0010.0173.43
4.3.20.0030.0163.40
4.3.10.0060.0173.36
4.3.00.0070.02018.23

preferences:
55.41 ms | 400 KiB | 5 Q