3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$output = file_get_contents($turl); $output = "<head> blablabla Bla bla </head> <body> Foobar </body>"; //Decapitation $head = substr($output, 0, strpos($output, "<body>")); $body = substr($output, strpos($output, "<body>")); Echo $head; Echo $body; /* $newOutput = str_replace('href="http', 'target="_parent" href="hhttp://localhost/e/site.php?turl=http', $output); $newOutput = str_replace('href="www.', 'target="_parent" href="http://localhost/e/site.php?turl=www.', $newOutput); $newOutput = str_replace('href="/', 'target="_parent" href="http://localhost/e/site.php?turl='.$turl.'/', $newOutput); echo $newOutput;*/

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.70.0130.00616.63
8.3.60.0080.00818.43
8.3.50.0090.00716.50
8.3.40.0090.00618.52
8.3.30.0070.00718.70
8.3.20.0080.00020.39
8.3.10.0000.00820.90
8.3.00.0080.00021.01
8.2.190.0060.01016.58
8.2.180.0130.00716.63
8.2.170.0140.00022.96
8.2.160.0150.00019.01
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00321.05
8.2.120.0020.00526.35
8.2.110.0070.00420.47
8.2.100.0040.00817.84
8.2.90.0040.00417.75
8.2.80.0030.00620.52
8.2.70.0050.00317.50
8.2.60.0040.00417.63
8.2.50.0030.00517.63
8.2.40.0040.00420.58
8.2.30.0000.00819.14
8.2.20.0000.00817.94
8.2.10.0070.00018.11
8.2.00.0050.00318.00
8.1.280.0100.00325.92
8.1.270.0080.00022.00
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00322.36
8.1.230.0060.00620.85
8.1.220.0080.00018.77
8.1.210.0040.00418.95
8.1.200.0040.00417.23
8.1.190.0070.00017.40
8.1.180.0040.00418.10
8.1.170.0090.00018.55
8.1.160.0000.00719.01
8.1.150.0000.00718.75
8.1.140.0020.00519.43
8.1.130.0000.00718.88
8.1.120.0030.00317.44
8.1.110.0080.00017.30
8.1.100.0050.00317.33
8.1.90.0000.00717.30
8.1.80.0000.00717.38
8.1.70.0030.00617.43
8.1.60.0050.00217.57
8.1.50.0070.00017.43
8.1.40.0000.00717.38
8.1.30.0040.00417.59
8.1.20.0040.00417.43
8.1.10.0050.00317.48
8.1.00.0040.00417.48
8.0.300.0040.00420.03
8.0.290.0070.00016.75
8.0.280.0000.00718.51
8.0.270.0070.00017.31
8.0.260.0060.00318.82
8.0.250.0070.00016.95
8.0.240.0050.00316.85
8.0.230.0000.00716.86
8.0.220.0040.00416.78
8.0.210.0040.00416.82
8.0.200.0000.00816.89
8.0.190.0080.00016.77
8.0.180.0040.00416.86
8.0.170.0000.00816.88
8.0.160.0000.00716.88
8.0.150.0000.00816.77
8.0.140.0040.00416.68
8.0.130.0050.00013.27
8.0.120.0070.00016.80
8.0.110.0000.00716.79
8.0.100.0000.00716.84
8.0.90.0040.00316.88
8.0.80.0170.00016.85
8.0.70.0070.00016.83
8.0.60.0050.00316.71
8.0.50.0080.00016.77
8.0.30.0070.01117.06
8.0.20.0100.00817.40
8.0.10.0160.00316.82
8.0.00.0070.01017.06
7.4.330.0000.00415.55
7.4.320.0000.00616.57
7.4.300.0060.00016.54
7.4.290.0000.00716.44
7.4.280.0040.00416.38
7.4.270.0030.00316.35
7.4.260.0000.00716.40
7.4.250.0040.00416.40
7.4.240.0040.00416.61
7.4.230.0040.00416.34
7.4.220.0120.01516.58
7.4.210.0090.00616.52
7.4.200.0030.00316.46
7.4.160.0070.01016.42
7.4.150.0030.01417.40
7.4.140.0130.00917.47
7.4.130.0080.00916.44
7.4.120.0100.00916.46
7.4.110.0040.01316.48
7.4.100.0120.00616.54
7.4.90.0100.01116.37
7.4.80.0260.01217.85
7.4.70.0080.01416.44
7.4.60.0090.00916.45
7.4.50.0070.01116.40
7.4.40.0120.00516.43
7.4.30.0100.00616.31
7.4.20.0140.00316.32
7.4.10.0080.01116.03
7.4.00.0080.00915.65
7.3.330.0000.00513.08
7.3.320.0060.00012.94
7.3.310.0050.00316.34
7.3.300.0000.00716.09
7.3.290.0100.00716.23
7.3.280.0070.00916.23
7.3.270.0150.00917.40
7.3.260.0110.00616.46
7.3.250.0080.01116.29
7.3.240.0120.00616.24
7.3.230.0090.01216.15
7.3.220.0060.01516.20
7.3.210.0100.01116.21
7.3.200.0080.00916.40
7.3.190.0070.01216.34
7.3.180.0080.00916.20
7.3.170.0100.00916.29
7.3.160.0050.01316.32
7.3.150.0030.01316.05
7.3.140.0100.01416.35
7.3.130.0100.00915.90
7.3.120.0090.00815.56
7.3.110.0070.00915.53
7.3.100.0080.00615.55
7.3.90.0090.00715.55
7.3.80.0100.00615.48
7.3.70.0080.00815.55
7.3.60.0090.00615.44
7.3.50.0070.00915.25
7.3.40.0060.01115.27
7.3.30.0080.00715.15
7.3.20.0080.00716.24
7.3.10.0080.00916.26
7.3.00.0090.00916.28
7.2.340.0210.01116.09
7.2.330.0130.00916.47
7.2.320.0190.00716.51
7.2.310.0160.01516.40
7.2.300.0090.01116.42
7.2.290.0070.01316.32
7.2.280.0100.01616.26
7.2.270.0280.00616.43
7.2.260.0140.01016.01
7.2.250.0110.00815.72
7.2.240.0100.01015.63
7.2.230.0100.00715.74
7.2.220.0080.01015.76
7.2.210.0080.01115.64
7.2.200.0100.01015.68
7.2.190.0100.00815.63
7.2.180.0110.00815.44
7.2.170.0100.00715.44
7.2.160.0100.00815.51
7.2.150.0130.00616.38
7.2.140.0130.00816.36
7.2.130.0100.00916.30
7.2.120.0090.00816.32
7.2.110.0100.01016.25
7.2.100.0120.00816.37
7.2.90.0100.00916.46
7.2.80.0110.00516.34
7.2.70.0110.01016.29
7.2.60.0090.01116.44
7.2.50.0110.00816.30
7.2.40.0120.00916.44
7.2.30.0100.00716.47
7.2.20.0140.00716.40
7.2.10.0110.01116.34
7.2.00.0100.01016.37
7.1.330.0090.01015.67
7.1.320.0100.00715.67
7.1.310.0080.00915.67
7.1.300.0180.00615.71
7.1.290.0080.00915.58
7.1.280.0110.00615.43
7.1.270.0100.00815.35
7.1.260.0080.00815.39
7.1.250.0070.00915.23
7.1.240.0120.00815.31
7.1.230.0230.00715.22
7.1.220.0160.00415.28
7.1.210.0130.00915.34
7.1.200.0120.00815.42
7.1.190.0110.00915.21
7.1.180.0130.00715.28
7.1.170.0140.00615.29
7.1.160.0110.00615.22
7.1.150.0130.01015.45
7.1.140.0140.00815.32
7.1.130.0110.00815.34
7.1.120.0120.01015.30
7.1.110.0110.00815.35
7.1.100.0110.01015.33
7.1.90.0150.00715.33
7.1.80.0120.00815.42
7.1.70.0630.01015.42
7.1.60.0130.00917.61
7.1.50.0160.00617.54
7.1.40.0120.00817.46
7.1.30.0210.01117.47
7.1.20.0140.01017.55
7.1.10.0110.01015.22
7.1.00.0840.01115.29
7.0.330.0100.00914.90
7.0.320.0130.00814.88
7.0.310.0110.01014.93
7.0.300.0130.00814.93
7.0.290.0130.00814.92
7.0.280.0160.00514.89
7.0.270.0140.00914.84
7.0.260.0130.01014.90
7.0.250.0240.00915.02
7.0.240.0150.00714.92
7.0.230.0150.00514.92
7.0.220.0120.00915.04
7.0.210.0100.01114.99
7.0.200.0140.00814.93
7.0.190.0110.00814.98
7.0.180.0130.01114.95
7.0.170.0130.00914.92
7.0.160.0120.00814.94
7.0.150.0110.01114.93
7.0.140.0970.00914.92
7.0.130.0910.00914.95
7.0.120.0870.00914.87
7.0.110.0850.01214.86
7.0.100.0810.01114.90
7.0.90.0120.00814.86
7.0.80.0130.00914.66
7.0.70.0340.00914.61
7.0.60.0150.00814.63
7.0.50.1000.01114.63
7.0.40.0120.00814.67
7.0.30.0150.00914.63
7.0.20.0140.00614.42
7.0.10.0150.00714.50
7.0.00.0150.00714.67
5.6.400.0100.01114.93
5.6.390.0110.01014.81
5.6.380.0120.01014.88
5.6.370.0130.01115.10
5.6.360.0120.00815.07
5.6.350.0120.00915.18
5.6.340.0130.00915.21
5.6.330.0150.01015.09
5.6.320.0120.01015.02
5.6.310.0150.00815.16
5.6.300.0160.01816.01
5.6.290.0120.02316.10
5.6.280.0140.02116.00
5.6.270.0120.02216.13
5.6.260.0140.01916.12
5.6.250.0120.01815.99
5.6.240.0140.02516.06
5.6.230.0150.02116.13
5.6.220.0140.02516.06
5.6.210.0140.02316.01
5.6.200.0110.02116.00
5.6.190.0160.01816.01
5.6.180.0120.02116.13
5.6.170.0140.02216.09
5.6.160.0170.02016.06
5.6.150.0160.02515.95
5.6.140.0170.02216.09
5.6.130.0160.01916.01
5.6.120.0100.02416.03
5.6.110.0150.01715.93
5.6.100.0140.02215.96
5.6.90.0100.02316.07
5.6.80.0120.01915.89
5.6.70.0140.01715.76
5.6.60.0120.02115.79
5.6.50.0150.01715.80
5.6.40.0130.02015.82
5.6.30.0150.01815.82
5.6.20.0100.02115.77
5.6.10.0140.01615.88
5.6.00.0120.01915.71

preferences:
28.3 ms | 401 KiB | 5 Q