3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-type: array'); $url = 'http://www.pcdiga.com/2/12164/Motherboard-MSI-B85M-E45'; ///* function get_url_contents($url){ $crl = curl_init(); $timeout = 5; curl_setopt ($crl, CURLOPT_URL,$url); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); $ret = curl_exec($crl); curl_close($crl); return $ret; } //*/ //$page=file_get_contents($url); $page=get_url_contents($url); $price=preg_grep("/span id\=\"preco_grelha\"\>(.*)<\/span\>/u", $page); print_r ($price); //print (); print ($page); ?>

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.0140.00718.52
8.3.50.0120.00822.02
8.3.40.0090.00618.71
8.3.30.0070.00719.09
8.3.20.0080.00020.26
8.3.10.0070.00023.66
8.3.00.0040.00418.88
8.2.180.0150.00616.88
8.2.170.0110.00422.96
8.2.160.0070.01322.24
8.2.150.0100.01024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0080.00021.18
8.2.110.0070.00322.00
8.2.100.0080.00317.72
8.2.90.0040.00420.55
8.2.80.0090.00018.77
8.2.70.0050.00317.63
8.2.60.0060.00318.04
8.2.50.0030.00618.07
8.2.40.0000.00819.76
8.2.30.0080.00018.06
8.2.20.0000.00717.71
8.2.10.0000.00718.08
8.2.00.0030.00617.87
8.1.280.0120.00325.92
8.1.270.0000.01518.75
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0080.00020.39
8.1.230.0030.00717.70
8.1.220.0000.00817.76
8.1.210.0080.00018.77
8.1.200.0000.01017.35
8.1.190.0000.00717.23
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0000.00718.76
8.1.150.0000.00818.88
8.1.140.0040.00417.32
8.1.130.0000.00717.85
8.1.120.0040.00417.44
8.1.110.0080.00017.37
8.1.100.0030.00417.30
8.1.90.0040.00417.43
8.1.80.0000.00717.36
8.1.70.0070.00017.35
8.1.60.0060.00317.54
8.1.50.0000.00817.54
8.1.40.0050.00217.45
8.1.30.0040.00417.58
8.1.20.0070.00017.57
8.1.10.0000.00717.49
8.1.00.0030.00617.54
8.0.300.0060.00318.77
8.0.290.0000.00816.75
8.0.280.0070.00018.46
8.0.270.0030.00317.09
8.0.260.0000.00617.11
8.0.250.0040.00416.99
8.0.240.0050.00316.97
8.0.230.0000.00716.98
8.0.220.0000.00716.83
8.0.210.0040.00416.96
8.0.200.0030.00316.99
8.0.190.0030.00316.85
8.0.180.0060.00316.95
8.0.170.0000.00716.91
8.0.160.0030.00316.90
8.0.150.0080.00316.82
8.0.140.0000.00816.76
8.0.130.0060.00013.30
8.0.120.0030.00616.93
8.0.110.0000.00716.80
8.0.100.0000.00816.89
8.0.90.0040.00416.80
8.0.80.0190.00316.95
8.0.70.0000.00816.92
8.0.60.0070.00016.94
8.0.50.0040.00416.73
8.0.30.0060.01317.31
8.0.20.0150.01217.40
8.0.10.0030.00517.05
8.0.00.0120.01016.73
7.4.330.0000.00515.03
7.4.320.0040.00416.38
7.4.300.0030.00316.57
7.4.290.0050.00216.51
7.4.280.0000.00716.52
7.4.270.0030.00316.52
7.4.260.0050.00316.37
7.4.250.0060.00316.48
7.4.240.0020.00516.61
7.4.230.0070.00016.52
7.4.220.0080.01116.57
7.4.210.0090.01216.64
7.4.200.0000.00816.32
7.4.160.0060.01216.27
7.4.150.0060.01517.40
7.4.140.0080.00917.86
7.4.130.0110.00716.42
7.4.120.0110.00716.54
7.4.110.0140.00416.44
7.4.100.0060.01216.40
7.4.90.0030.01316.40
7.4.80.0070.01019.39
7.4.70.0110.01116.61
7.4.60.0070.01016.53
7.4.50.0040.00416.59
7.4.40.0030.01416.65
7.4.30.0190.00316.59
7.4.00.0060.00914.90
7.3.330.0000.00513.27
7.3.320.0030.00313.33
7.3.310.0000.00716.38
7.3.300.0040.00416.30
7.3.290.0090.00616.34
7.3.280.0070.00916.33
7.3.270.0130.00517.40
7.3.260.0150.00716.34
7.3.250.0050.01316.35
7.3.240.0040.01716.32
7.3.230.0080.00816.46
7.3.210.0150.00816.35
7.3.200.0060.01019.39
7.3.190.0100.00716.51
7.3.180.0040.01216.58
7.3.170.0090.00916.38
7.3.160.0060.00916.48
7.3.10.0100.00316.60
7.3.00.0070.01016.70
7.2.330.0120.00616.29
7.2.320.0100.01016.52
7.2.310.0070.01316.59
7.2.300.0030.01316.63
7.2.290.0090.01316.54
7.2.130.0100.00716.84
7.2.120.0000.01216.97
7.2.110.0080.00516.79
7.2.100.0030.00916.78
7.2.90.0000.01716.79
7.2.80.0070.00716.90
7.2.70.0060.01016.86
7.2.60.0050.00816.68
7.2.50.0000.01416.82
7.2.40.0030.01416.62
7.2.30.0080.00816.86
7.2.20.0030.00816.94
7.2.10.0070.00716.64
7.2.00.0080.00918.14
7.1.250.0100.00615.91
7.1.200.0070.01015.83
7.1.100.0070.00718.43
7.1.70.0030.00516.96
7.1.60.0100.01019.22
7.1.50.0100.01016.98
7.1.00.0070.07322.44
7.0.200.0030.00316.63
7.0.140.0000.07021.95
7.0.60.0170.08019.95
7.0.50.0100.08017.99
7.0.40.0070.08020.20
7.0.30.0270.05020.25
7.0.20.0300.03320.11
7.0.10.0130.08320.25
7.0.00.0100.06020.19
5.6.280.0000.07721.11
5.6.210.0070.08020.51
5.6.200.0100.07718.28
5.6.190.0170.07720.42
5.6.180.0300.06320.47
5.6.170.0200.06020.54
5.6.160.0070.05020.46
5.6.150.0000.04318.18
5.6.140.0030.05318.18
5.6.130.0030.08718.26
5.6.120.0100.04021.02
5.6.110.0170.07721.15
5.6.100.0030.06321.11
5.6.90.0170.07721.09
5.6.80.0130.07020.38
5.5.350.0270.07720.45
5.5.340.0030.08318.03
5.5.330.0130.06020.25
5.5.320.0300.07720.34
5.5.310.0330.06320.19
5.5.300.0100.07717.96
5.5.290.0070.06317.95
5.5.280.0200.04020.81
5.5.270.0100.04720.78
5.5.260.0070.04020.87
5.5.250.0070.07720.79
5.5.240.0070.07320.16
5.4.450.0370.05319.62
5.4.440.0700.05319.23
5.4.430.0400.06319.38
5.4.420.0230.05719.52
5.4.410.0670.05319.46
5.4.400.0430.05719.16
5.4.390.0070.06018.77
5.4.380.0200.05718.78
5.4.370.0200.05718.81
5.4.360.0130.05318.75
5.4.350.0200.07718.84
5.4.340.0200.05018.84
5.4.320.0170.06018.62
5.4.310.0200.05318.78
5.4.300.0230.05018.78
5.4.290.0270.04318.62
5.4.280.0270.04318.69
5.4.270.0070.06718.69
5.4.260.0130.06018.50
5.4.250.0200.05718.63
5.4.240.0230.05018.76
5.4.230.0200.05318.63
5.4.220.0100.07018.56
5.4.210.0270.04318.43
5.4.200.0230.04716.69
5.4.190.0170.05718.73
5.4.180.0200.05018.73
5.4.170.0270.05018.77
5.4.160.0270.05318.46
5.4.150.0170.05718.73
5.4.140.0130.06016.45
5.4.130.0370.06316.24
5.4.120.0300.06316.32
5.4.110.0300.05316.29
5.4.100.0370.05016.32
5.4.90.0170.06316.32
5.4.80.0230.05716.27
5.4.70.0170.08316.39
5.4.60.0300.06716.17
5.4.50.0200.06016.29
5.4.40.0230.05316.24
5.4.30.0100.06316.16
5.4.20.0230.06316.26
5.4.10.0170.06716.20
5.4.00.0170.05715.67
5.3.290.0270.06714.77
5.3.280.0230.06014.64
5.3.270.0370.06314.74
5.3.260.0370.06314.64
5.3.250.0300.06714.62
5.3.240.0230.05014.64
5.3.230.0270.04714.80
5.3.220.0200.05314.54
5.3.210.0230.05014.59
5.3.200.0300.05014.79
5.3.190.0270.05714.54
5.3.180.0300.05314.78
5.3.170.0330.06314.79
5.3.160.0300.06714.56
5.3.150.0230.07314.78
5.3.140.0370.05314.69
5.3.130.0270.06014.57
5.3.120.0270.06314.68
5.3.110.0270.05014.68
5.3.100.0300.04314.08
5.3.90.0270.05314.16
5.3.80.0200.05714.05
5.3.70.0170.06014.04
5.3.60.0270.04714.21
5.3.50.0370.05313.97
5.3.40.0370.06713.97
5.3.30.0270.05713.93
5.3.20.0170.05713.82
5.3.10.0130.06313.71
5.3.00.0130.06313.86
5.2.170.0200.04311.24
5.2.160.0270.05311.25
5.2.150.0200.04711.18
5.2.140.0270.03711.17
5.2.130.0100.04711.14
5.2.120.0200.04011.15
5.2.110.0230.05011.12
5.2.100.0130.04311.16
5.2.90.0230.05311.08
5.2.80.0130.05311.09
5.2.70.0170.04311.16
5.2.60.0200.04311.08
5.2.50.0170.06011.12
5.2.40.0200.03711.21
5.2.30.0170.04011.07
5.2.20.0170.04011.14
5.2.10.0170.03710.86
5.2.00.0300.04310.82
5.1.60.0100.04010.18
5.1.50.0100.04010.12
5.1.40.0200.03010.02
5.1.30.0170.03710.38
5.1.20.0130.04710.48
5.1.10.0170.04710.15
5.1.00.0200.03310.28
5.0.50.0130.0238.58
5.0.40.0130.0308.43
5.0.30.0200.0478.42
5.0.20.0030.0308.22
5.0.10.0130.0278.30
5.0.00.0070.0438.15
4.4.90.0030.0275.91
4.4.80.0130.0235.97
4.4.70.0130.0235.89
4.4.60.0100.0275.92
4.4.50.0030.0275.89
4.4.40.0070.0375.89
4.4.30.0100.0205.97
4.4.20.0100.0205.98
4.4.10.0170.0175.94
4.4.00.0130.0305.91
4.3.110.0100.0235.82
4.3.100.0070.0205.84
4.3.90.0000.0275.79
4.3.80.0130.0405.80
4.3.70.0130.0235.84
4.3.60.0070.0305.83
4.3.50.0070.0275.79
4.3.40.0070.0375.78
4.3.30.0030.0234.56
4.3.20.0070.0234.66
4.3.10.0030.0304.50
4.3.00.0100.0207.30

preferences:
33.06 ms | 401 KiB | 5 Q