3v4l.org

run code in 300+ PHP versions simultaneously
<?php #header('Content-type:application/json;charset=utf-8'); $url = 'http://exotel.in/hacks/exotel-geo/iframe-index.php'; $data = array('mobile_number' => '7266788211'); // use key 'http' even if you send the request to https://... $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data), ), ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); #var_dump($result); # Create a DOM parser object $dom = new DOMDocument(); @$dom->loadHTML($result); #$output = array(); # Iterate over all the <a> tags foreach($dom->getElementsByTagName('h2') as $link) { # Show the <a href> echo $link->nodeValue; echo "<br />"; } #var_dump($result); ?>

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.00918.93
8.3.60.0000.01618.68
8.3.50.0090.00922.17
8.3.40.0040.01119.07
8.3.30.0120.00919.14
8.3.20.0040.01520.73
8.3.10.0130.00624.07
8.3.00.0040.00422.21
8.2.190.0160.00617.00
8.2.180.0150.00318.54
8.2.170.0090.00622.96
8.2.160.0110.00420.49
8.2.150.0030.00624.18
8.2.140.0110.00724.66
8.2.130.0160.00321.27
8.2.120.0040.00426.35
8.2.110.0030.00722.50
8.2.100.0000.01218.16
8.2.90.0080.00019.34
8.2.80.0050.00318.00
8.2.70.0040.00418.00
8.2.60.0030.00618.05
8.2.50.0000.00818.09
8.2.40.0000.00822.61
8.2.30.0040.00419.76
8.2.20.0000.00918.18
8.2.10.0040.00418.46
8.2.00.0060.00318.34
8.1.280.0070.00725.92
8.1.270.0050.00324.26
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00024.17
8.1.230.0000.01221.21
8.1.220.0060.00317.90
8.1.210.0030.00518.77
8.1.200.0000.00917.60
8.1.190.0040.00417.60
8.1.180.0000.00818.10
8.1.170.0050.00318.96
8.1.160.0040.00420.88
8.1.150.0040.00419.09
8.1.140.0050.00319.88
8.1.130.0000.00718.02
8.1.120.0040.00717.70
8.1.110.0040.00417.68
8.1.100.0040.00417.60
8.1.90.0080.00017.63
8.1.80.0030.00517.69
8.1.70.0000.00717.64
8.1.60.0040.00717.71
8.1.50.0100.00017.77
8.1.40.0030.00617.71
8.1.30.0060.00317.80
8.1.20.0080.00017.87
8.1.10.0080.00017.69
8.1.00.0080.00317.66
8.0.300.0070.00318.96
8.0.290.0000.00817.00
8.0.280.0040.00418.86
8.0.270.0040.00417.60
8.0.260.0070.00017.49
8.0.250.0000.00717.25
8.0.240.0030.00317.27
8.0.230.0000.00717.36
8.0.220.0030.00517.08
8.0.210.0000.00917.19
8.0.200.0030.00317.28
8.0.190.0000.00817.21
8.0.180.0080.00017.25
8.0.170.0000.00817.29
8.0.160.0000.00717.18
8.0.150.0030.00617.03
8.0.140.0040.00417.13
8.0.130.0000.00613.76
8.0.120.0030.00517.29
8.0.110.0000.00817.21
8.0.100.0080.00017.17
8.0.90.0060.00317.31
8.0.80.0130.01017.36
8.0.70.0080.00017.14
8.0.60.0030.00517.40
8.0.50.0030.00617.21
8.0.30.0120.00617.20
8.0.20.0120.00917.50
8.0.10.0040.00417.41
8.0.00.0060.01217.20
7.4.330.0000.00516.98
7.4.320.0000.00716.78
7.4.300.0040.00416.69
7.4.290.0000.00816.81
7.4.280.0040.00416.75
7.4.270.0000.00716.66
7.4.260.0070.00216.71
7.4.250.0040.00416.82
7.4.240.0050.00216.81
7.4.230.0040.00416.88
7.4.220.0130.00916.80
7.4.210.0070.01116.76
7.4.200.0050.00216.66
7.4.160.0180.00316.60
7.4.150.0140.00617.40
7.4.140.0130.01017.86
7.4.130.0080.01016.75
7.4.120.0110.00716.77
7.4.110.0130.00616.69
7.4.100.0110.00816.82
7.4.90.0160.00516.73
7.4.80.0150.00319.39
7.4.70.0070.01016.87
7.4.60.0190.00016.65
7.4.50.0110.00316.72
7.4.40.0080.00816.74
7.4.30.0030.01716.86
7.4.00.0100.00615.41
7.3.330.0050.00013.42
7.3.320.0030.00313.43
7.3.310.0090.00016.73
7.3.300.0040.00416.61
7.3.290.0040.00416.57
7.3.280.0110.00716.57
7.3.270.0160.00817.40
7.3.260.0070.02116.76
7.3.250.0110.00816.63
7.3.240.0080.01016.68
7.3.230.0090.00916.61
7.3.210.0190.00416.67
7.3.200.0080.00819.39
7.3.190.0070.01116.65
7.3.180.0000.02016.82
7.3.170.0060.01116.54
7.3.160.0120.00616.62
7.3.120.0040.01515.00
7.3.110.0100.01014.77
7.3.100.0100.01014.75
7.3.90.0030.01215.01
7.3.80.0100.01014.91
7.3.70.0000.00915.20
7.3.60.0140.00015.14
7.3.50.0060.00615.12
7.3.40.0070.00714.78
7.3.30.0030.00514.90
7.3.20.0040.01116.54
7.3.10.0040.01116.91
7.3.00.0030.01016.63
7.2.330.0110.00817.08
7.2.320.0030.01716.63
7.2.310.0100.00916.61
7.2.300.0160.00316.72
7.2.290.0080.00816.75
7.2.250.0080.01115.34
7.2.240.0100.01015.14
7.2.230.0060.00915.47
7.2.220.0030.00715.52
7.2.210.0040.01115.28
7.2.200.0080.00415.21
7.2.190.0080.00815.42
7.2.180.0040.00815.00
7.2.170.0070.01015.46
7.2.160.0060.00615.02
7.2.150.0060.00917.05
7.2.140.0060.00917.11
7.2.130.0040.01117.25
7.2.120.0030.01317.30
7.2.110.0070.00716.85
7.2.100.0060.00617.18
7.2.90.0030.01017.16
7.2.80.0030.00717.19
7.2.70.0040.01117.26
7.2.60.0090.00517.13
7.2.50.0130.00317.31
7.2.40.0040.01217.29
7.2.30.0030.00617.04
7.2.20.0100.00716.89
7.2.10.0120.00316.86
7.2.00.0060.00918.45
7.1.330.0040.01116.00
7.1.320.0040.01115.83
7.1.310.0030.01015.71
7.1.300.0030.00615.74
7.1.290.0030.01016.08
7.1.280.0060.00315.91
7.1.270.0000.01016.04
7.1.260.0030.00616.00
7.1.250.0080.00816.06
7.1.240.0060.00615.89
7.1.230.0060.00315.82
7.1.220.0080.00816.03
7.1.210.0030.01315.98
7.1.200.0070.00715.93
7.1.190.0030.01016.16
7.1.180.0060.00916.00
7.1.170.0060.00615.98
7.1.160.0040.00815.98
7.1.150.0040.01116.11
7.1.140.0090.00316.00
7.1.130.0080.00815.98
7.1.120.0080.00515.89
7.1.110.0000.01316.12
7.1.100.0070.01017.21
7.1.90.0080.00416.06
7.1.80.0090.00615.61
7.1.70.0050.01016.66
7.1.60.0070.00917.61
7.1.50.0030.01116.68
7.1.40.0090.00615.91
7.1.30.0030.00615.97
7.1.20.0000.01315.84
7.1.10.0080.00416.12
7.1.00.0050.04819.43
7.0.330.0030.01315.80
7.0.320.0060.00315.86
7.0.310.0000.00815.71
7.0.300.0100.00315.58
7.0.290.0000.01415.64
7.0.280.0140.00015.71
7.0.270.0100.00715.64
7.0.260.0080.00415.30
7.0.250.0090.00615.68
7.0.240.0060.00315.73
7.0.230.0040.01115.53
7.0.220.0120.00315.68
7.0.210.0030.00915.83
7.0.200.0040.00815.25
7.0.190.0030.01015.81
7.0.180.0050.00515.54
7.0.170.0040.01115.65
7.0.160.0080.00315.23
7.0.150.0060.00615.44
7.0.140.0030.00715.59
7.0.130.0070.00715.77
7.0.120.0030.01015.58
7.0.110.0030.00915.64
7.0.100.0070.00315.68
7.0.90.0090.00615.62
7.0.80.0170.00015.62
7.0.70.0070.00715.68
7.0.60.0090.03318.94
7.0.50.0130.03716.99
7.0.40.0060.03817.20
7.0.30.0250.03317.11
7.0.20.0170.02917.09
7.0.10.0100.03817.02
7.0.00.0050.03917.01
5.6.400.0060.00314.39
5.6.390.0030.01314.70
5.6.380.0070.01114.65
5.6.370.0090.00014.86
5.6.360.0070.01014.72
5.6.350.0090.00614.53
5.6.340.0030.01314.80
5.6.330.0060.00614.78
5.6.320.0030.00614.83
5.6.310.0110.00314.66
5.6.300.0060.00914.78
5.6.290.0060.00314.54
5.6.280.0080.01817.95
5.6.270.0060.00314.32
5.6.260.0030.00914.71
5.6.250.0040.01114.85
5.6.240.0100.00314.70
5.6.230.0040.01114.39
5.6.220.0090.00614.51
5.6.210.0130.03917.51
5.6.200.0110.03816.36
5.6.190.0100.04317.80
5.6.180.0130.02717.96
5.6.170.0180.03417.53
5.6.160.0070.04517.65
5.6.150.0050.04716.46
5.6.140.0010.03516.64
5.6.130.0120.04216.57
5.6.120.0050.03018.05
5.6.110.0070.04118.09
5.6.100.0050.02617.94
5.6.90.0090.02218.12
5.6.80.0030.02817.50
5.6.70.0000.01414.57
5.6.60.0060.00914.39
5.6.50.0060.00314.58
5.6.40.0110.00414.46
5.6.30.0060.01014.32
5.6.20.0070.00414.41
5.6.10.0150.00314.63
5.6.00.0090.00614.49
5.5.380.0100.00614.54
5.5.370.0040.00814.12
5.5.360.0070.00714.51
5.5.350.0180.04017.64
5.5.340.0020.02716.24
5.5.330.0120.02517.69
5.5.320.0170.04317.40
5.5.310.0230.02517.46
5.5.300.0030.02816.37
5.5.290.0090.04316.38
5.5.280.0070.02517.74
5.5.270.0060.03117.92
5.5.260.0110.04417.99
5.5.250.0050.03617.71
5.5.240.0190.03017.37
5.5.230.0130.00314.13
5.5.220.0100.00714.41
5.5.210.0040.00714.24
5.5.200.0060.00614.62
5.5.190.0030.00614.27
5.5.180.0090.00614.63
5.5.170.0060.00914.42
5.5.160.0030.01014.21
5.5.150.0030.00914.32
5.5.140.0030.00814.50
5.5.130.0090.00614.35
5.5.120.0040.01114.05
5.5.110.0000.00914.62
5.5.100.0040.00714.46
5.5.90.0000.01514.61
5.5.80.0040.01114.24
5.5.70.0030.01614.53
5.5.60.0100.00614.10
5.5.50.0030.01614.40
5.5.40.0000.00914.26
5.5.30.0000.01814.12
5.5.20.0030.01614.48
5.5.10.0060.01314.51
5.5.00.0000.01214.52

preferences:
89.94 ms | 401 KiB | 5 Q