3v4l.org

run code in 300+ PHP versions simultaneously
<?php $counter = 0; $counter2 = 20; $content = file_get_contents("http://example.com"); // sleep(2); while($counter < $counter2) { $counter++; $first_step = explode( '<h2 class="rgs">' , $content ); $second_step = explode("</h2>" , $first_step[$counter] ); // echo $second_step[0]; $link[$counter] = htmlspecialchars($second_step[0]); // echo "$link"; // echo "<br>"; }

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.0180.00418.43
8.3.50.0040.01516.61
8.3.40.0130.00319.19
8.3.30.0060.00919.09
8.3.20.0050.00320.59
8.3.10.0030.00522.27
8.3.00.0060.00922.30
8.2.180.0120.00318.58
8.2.170.0080.00822.96
8.2.160.0070.00722.24
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0080.00017.88
8.2.110.0050.00520.49
8.2.100.0090.00318.16
8.2.90.0060.00318.47
8.2.80.0030.00618.00
8.2.70.0000.00817.50
8.2.60.0090.00318.18
8.2.50.0080.00018.07
8.2.40.0080.00319.46
8.2.30.0070.00322.54
8.2.20.0080.00017.92
8.2.10.0030.00518.25
8.2.00.0070.00018.29
8.1.280.0090.00625.92
8.1.270.0060.00324.09
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00522.36
8.1.230.0070.00420.97
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0100.00017.47
8.1.190.0030.00617.47
8.1.180.0000.00818.10
8.1.170.0000.00918.78
8.1.160.0040.00422.02
8.1.150.0030.00518.94
8.1.140.0080.00017.59
8.1.130.0040.00417.57
8.1.120.0080.00017.66
8.1.110.0040.00417.48
8.1.100.0070.00017.50
8.1.90.0070.00017.54
8.1.80.0060.00317.58
8.1.70.0000.00717.48
8.1.60.0000.00817.75
8.1.50.0030.01017.69
8.1.40.0030.00917.57
8.1.30.0040.00417.72
8.1.20.0040.00417.86
8.1.10.0030.00517.56
8.1.00.0050.00317.68
8.0.300.0000.00820.29
8.0.290.0040.00416.88
8.0.280.0030.00318.55
8.0.270.0000.00717.45
8.0.260.0040.00416.98
8.0.250.0000.00817.14
8.0.240.0030.00317.10
8.0.230.0040.00417.14
8.0.220.0050.00217.05
8.0.210.0000.00917.04
8.0.200.0070.00017.01
8.0.190.0030.00517.04
8.0.180.0080.00417.07
8.0.170.0080.00017.07
8.0.160.0000.00716.97
8.0.150.0000.00817.21
8.0.140.0050.00217.20
8.0.130.0000.00513.64
8.0.120.0040.00417.15
8.0.110.0050.00317.07
8.0.100.0000.00817.16
8.0.90.0040.00417.04
8.0.80.0090.00917.19
8.0.70.0000.00817.05
8.0.60.0040.00417.19
8.0.50.0030.00517.12
8.0.30.0090.01017.32
8.0.20.0100.01017.45
8.0.10.0040.00417.08
8.0.00.0090.01017.07
7.4.330.0000.00615.27
7.4.320.0070.00316.59
7.4.300.0030.00316.67
7.4.290.0040.00716.48
7.4.280.0080.00016.54
7.4.270.0030.00316.51
7.4.260.0070.00016.55
7.4.250.0030.00616.73
7.4.240.0040.00416.71
7.4.230.0000.00716.58
7.4.220.0100.01616.69
7.4.210.0070.01416.79
7.4.200.0000.00716.60
7.4.160.0070.01016.72
7.4.150.0000.01917.40
7.4.140.0090.01117.86
7.4.130.0140.00416.72
7.4.120.0090.00916.68
7.4.110.0120.00616.82
7.4.100.0150.00316.80
7.4.90.0040.01416.59
7.4.80.0150.00819.39
7.4.70.0140.00516.79
7.4.60.0070.01016.89
7.4.50.0040.00416.61
7.4.40.0100.01316.51
7.4.30.0060.01216.61
7.4.00.0100.00315.23
7.3.330.0030.00313.61
7.3.320.0050.00013.54
7.3.310.0030.00516.80
7.3.300.0030.00516.59
7.3.290.0050.01016.67
7.3.280.0110.00716.72
7.3.270.0070.01017.40
7.3.260.0090.00916.55
7.3.250.0140.00516.68
7.3.240.0140.01116.52
7.3.230.0150.00416.56
7.3.210.0140.00416.77
7.3.200.0160.00716.86
7.3.190.0120.00416.67
7.3.180.0060.01016.49
7.3.170.0140.00416.71
7.3.160.0110.01116.75
7.2.330.0130.00616.66
7.2.320.0170.00016.75
7.2.310.0080.01116.63
7.2.300.0080.00916.68
7.2.290.0070.01116.68
7.2.60.0030.01017.07
7.2.00.0040.01119.73
7.1.200.0060.00616.11
7.1.100.0080.00818.64
7.1.70.0000.01117.18
7.1.60.0080.01619.11
7.1.50.0070.01617.50
7.1.00.0100.06722.80
7.0.200.0120.00616.92
7.0.60.0000.06320.12
7.0.50.0030.07718.18
7.0.40.0100.07020.46
7.0.30.0230.07720.46
7.0.20.0230.04720.50
7.0.10.0170.07720.41
7.0.00.0100.08320.50
5.6.280.0100.06721.28
5.6.210.0170.07320.93
5.6.200.0130.07718.57
5.6.190.0070.04021.09
5.6.180.0170.04020.94
5.6.170.0230.08020.86
5.6.160.0030.08720.87
5.6.150.0000.05718.42
5.6.140.0100.07318.39
5.6.130.0000.08318.50
5.6.120.0170.06021.36
5.6.110.0130.08721.33
5.6.100.0030.05721.53
5.6.90.0070.04021.48
5.6.80.0070.08020.71
5.5.350.0000.05020.81
5.5.340.0100.08018.27
5.5.330.0030.05720.92
5.5.320.3870.04020.77
5.5.310.0200.04320.58
5.5.300.0030.05018.36
5.5.290.0070.06318.25
5.5.280.0170.07021.25
5.5.270.0070.07721.04
5.5.260.0070.08021.19
5.5.250.0130.06721.06
5.5.240.0270.07320.39
5.4.450.1370.08720.15
5.4.440.1270.07019.96
5.4.430.1330.06719.98
5.4.420.1270.04720.14
5.4.410.1230.05720.09
5.4.400.1070.06019.70
5.4.390.1200.05019.69
5.4.380.1070.05319.64
5.4.370.1030.05319.70
5.4.360.1270.05719.62
5.4.350.0900.05019.67
5.4.340.0970.04319.74
5.4.320.1270.05319.67
5.4.310.0870.04719.71
5.4.300.1270.05319.73
5.4.290.0870.08019.66
5.4.280.0900.08319.71
5.4.270.0200.07319.55
5.4.260.0200.04319.55
5.4.250.0200.04719.79
5.4.240.0500.04719.64
5.4.230.1070.05319.76
5.4.220.0800.05319.88
5.4.210.0800.05319.69
5.4.200.0830.05719.76
5.4.190.0830.04719.67
5.4.180.0930.05719.75
5.4.170.0770.05719.65
5.4.160.0800.05019.61
5.4.150.1070.08319.73
5.4.140.0900.04717.03
5.4.130.1330.04716.97
5.4.120.1170.06717.06
5.4.110.0830.05316.95
5.4.100.0830.05017.25
5.4.90.1270.05016.95
5.4.80.1070.05317.13
5.4.70.0200.03317.17
5.4.60.0000.04317.11
5.4.50.0030.03716.91
5.4.40.0230.06016.96
5.4.30.0270.03716.95
5.4.20.0300.06717.07

preferences:
57.32 ms | 400 KiB | 5 Q