3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = curl_init(); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_HTTPHEADER, array('Accept: application/json', 'Content-Type: application/json')); curl_setopt($c, CURLOPT_URL, 'http://data.bter.com/api/1/ticker/ifc_ltc'); $avg = curl_exec($c); curl_close($c); $obj = json_decode($avg); ?> IFC/LTC <strong>Buy</strong> <?php echo print_r($obj->{'sell'}."\n", true);?></a> <strong>Sell </strong><?php echo print_r($obj->{'buy'}."\n", true);?></a></div>

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.0060.01218.18
8.3.50.0130.00821.15
8.3.40.0070.00718.82
8.3.30.0170.00318.95
8.3.20.0040.00420.29
8.3.10.0080.00022.10
8.3.00.0070.00022.40
8.2.180.0070.00716.50
8.2.170.0070.01122.96
8.2.160.0030.01219.16
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0050.00319.35
8.2.110.0000.01022.25
8.2.100.0090.00617.71
8.2.90.0040.00419.11
8.2.80.0000.00817.97
8.2.70.0060.00317.59
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0000.00818.03
8.2.30.0030.00617.96
8.2.20.0000.00717.66
8.2.10.0000.00917.60
8.2.00.0030.00617.82
8.1.280.0070.00725.92
8.1.270.0080.00022.11
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0080.00023.85
8.1.230.0110.00019.14
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0000.00917.11
8.1.190.0040.00417.53
8.1.180.0090.00018.62
8.1.170.0030.00518.52
8.1.160.0040.00422.14
8.1.150.0040.00418.55
8.1.140.0040.00417.32
8.1.130.0050.00517.84
8.1.120.0040.00317.32
8.1.110.0000.00817.31
8.1.100.0030.00317.28
8.1.90.0070.00017.35
8.1.80.0050.00317.34
8.1.70.0030.00317.37
8.1.60.0060.00317.46
8.1.50.0040.00417.45
8.1.40.0040.00417.44
8.1.30.0000.00817.61
8.1.20.0000.00817.49
8.1.10.0030.00617.45
8.1.00.0000.00717.36
8.0.300.0000.00718.77
8.0.290.0040.00416.93
8.0.280.0000.00718.30
8.0.270.0030.00517.24
8.0.260.0000.00816.70
8.0.250.0030.00416.94
8.0.240.0050.00516.90
8.0.230.0080.00016.96
8.0.220.0030.00316.77
8.0.210.0040.00416.89
8.0.200.0030.00316.98
8.0.190.0000.00716.98
8.0.180.0030.00517.01
8.0.170.0000.00916.85
8.0.160.0000.00716.86
8.0.150.0000.00716.96
8.0.140.0080.00316.82
8.0.130.0000.00613.25
8.0.120.0080.00016.77
8.0.110.0050.00216.85
8.0.100.0040.00417.00
8.0.90.0040.00416.99
8.0.80.0030.01816.94
8.0.70.0040.00416.81
8.0.60.0030.00316.96
8.0.50.0050.00316.96
8.0.30.0130.00617.03
8.0.20.0060.01217.40
8.0.10.0040.00417.05
8.0.00.0060.01316.68
7.4.330.0020.00215.00
7.4.320.0030.00316.31
7.4.300.0060.00016.36
7.4.290.0000.00716.37
7.4.280.0030.00316.34
7.4.270.0040.00416.43
7.4.260.0030.00316.29
7.4.250.0040.00416.50
7.4.240.0030.00316.40
7.4.230.0070.00016.57
7.4.220.0060.01316.36
7.4.210.0110.00516.44
7.4.200.0000.00716.52
7.4.190.0050.00316.65
7.4.160.0100.00616.41
7.4.150.0090.00917.40
7.4.140.0130.00617.86
7.4.130.0120.00816.44
7.4.120.0090.00816.48
7.4.110.0120.00616.39
7.4.100.0000.01616.38
7.4.90.0120.00616.68
7.4.80.0060.01319.39
7.4.70.0120.00916.46
7.4.60.0030.01316.34
7.4.50.0030.00516.48
7.4.40.0040.01222.77
7.4.30.0160.00016.32
7.4.00.0070.01015.01
7.3.330.0050.00013.11
7.3.320.0000.00513.25
7.3.310.0070.00016.11
7.3.300.0030.00316.27
7.3.290.0080.00816.22
7.3.280.0080.00816.26
7.3.270.0090.00617.40
7.3.260.0110.00516.21
7.3.250.0090.00816.42
7.3.240.0140.00716.46
7.3.230.0100.00716.39
7.3.210.0070.01016.25
7.3.200.0070.01119.39
7.3.190.0150.00716.41
7.3.180.0070.01316.37
7.3.170.0090.00916.48
7.3.160.0120.00416.38
7.3.120.0100.00014.93
7.2.330.0000.01816.61
7.2.320.0120.00916.58
7.2.310.0120.00616.34
7.2.300.0070.01016.25
7.2.290.0070.01016.35
7.2.80.0090.00016.68
7.2.60.0120.00016.88
7.2.00.0030.01019.40
7.1.200.0000.01315.59
7.1.100.0030.01217.62
7.1.70.0110.00016.93
7.1.60.0170.00719.82
7.1.50.0110.01116.96
7.1.00.0000.08022.36
7.0.200.0060.01016.67
7.0.140.0030.07321.93
7.0.70.4100.03719.93
7.0.60.0070.07320.01
7.0.50.0070.08017.69
7.0.40.0100.08320.26
7.0.30.0300.08020.30
7.0.20.0330.06720.34
7.0.10.0130.05020.00
7.0.00.0100.06320.27
5.6.280.0000.07721.09
5.6.210.0030.06020.65
5.6.200.0100.07018.21
5.6.190.0070.08720.46
5.6.180.0300.05020.40
5.6.170.0370.07020.50
5.6.160.0000.06320.45
5.6.150.0030.08018.11
5.6.140.0030.08718.18
5.6.130.0070.08718.21
5.6.120.0070.08020.89
5.6.110.0070.08021.13
5.6.100.0100.06720.98
5.6.90.0170.04320.95
5.6.80.0000.06720.36
5.6.70.0230.03320.41
5.5.350.0030.05020.39
5.5.340.0070.07017.98
5.5.330.0100.08020.38
5.5.320.0030.07720.25
5.5.310.0270.06320.17
5.5.300.0100.04717.90
5.5.290.0100.08017.94
5.5.280.0130.07320.73
5.5.270.0130.07320.97
5.5.260.0270.06320.65
5.5.250.0170.06020.61
5.5.240.0030.07320.12
5.4.450.0430.06019.32
5.4.440.0900.05719.64
5.4.430.0230.06319.58
5.4.420.0430.05019.58
5.4.410.1130.04319.42
5.4.400.0830.04719.22
5.4.390.0330.04719.11
5.4.380.0400.04318.63
5.4.370.0170.04318.52
5.4.360.0400.04318.62
5.4.350.0100.04011.98
5.4.340.0060.03911.97
5.4.320.0040.04712.46
5.4.310.0070.04012.45
5.4.300.0070.04312.46
5.4.290.0080.03712.45
5.4.280.0080.03312.35
5.4.270.0060.04612.35
5.4.260.0130.04718.66
5.4.250.0030.05718.97
5.4.240.0070.06018.81
5.4.230.0070.08018.70
5.4.220.0030.06718.87
5.4.210.0100.07018.70
5.4.200.0270.05018.84
5.4.190.0030.06718.81
5.4.180.0100.06018.83
5.4.170.0170.06718.81
5.4.160.0100.06018.69
5.4.150.0030.08318.74
5.4.140.0170.05716.23
5.4.130.0130.05016.21
5.4.120.0100.04716.18
5.4.110.0170.06316.26
5.4.100.0030.05316.32
5.4.90.0130.04016.46
5.4.80.0100.05016.15
5.4.70.0100.07016.42
5.4.60.0170.04716.11
5.4.50.0100.05316.23
5.4.40.0200.06016.40
5.4.30.0030.06716.10
5.4.20.0230.05716.13
5.4.10.0100.04716.27
5.4.00.0200.06315.89
5.3.290.0080.04912.80
5.3.280.0200.06014.32
5.3.270.0200.05314.62
5.3.260.0270.05714.49
5.3.250.0170.06014.61
5.3.240.0130.07014.52
5.3.230.0100.05314.61
5.3.220.0070.05014.58
5.3.210.0100.05014.67
5.3.200.0030.05714.58
5.3.190.0230.04014.58
5.3.180.0070.05314.71
5.3.170.0100.06314.33
5.3.160.0130.04314.57
5.3.150.0100.04714.34
5.3.140.0170.04014.47
5.3.130.0130.05014.55
5.3.120.0170.06314.57
5.3.110.0070.08014.54
5.3.100.0130.05714.05
5.3.90.0130.06313.87
5.3.80.0070.05013.94
5.3.70.0200.05714.03
5.3.60.0030.06014.02
5.3.50.0030.06313.94
5.3.40.0100.05313.80
5.3.30.0100.06013.85
5.3.20.0130.05713.70
5.3.10.0000.07013.66
5.3.00.0070.07713.64
5.2.170.0000.06711.15
5.2.160.0070.04011.15
5.2.150.0100.05311.03
5.2.140.0030.04711.16
5.2.130.0030.04311.25
5.2.120.0100.05011.02
5.2.110.0070.04311.01
5.2.100.0170.03711.11
5.2.90.0070.03711.11
5.2.80.0070.03711.02
5.2.70.0070.04010.99
5.2.60.0100.03711.04
5.2.50.0070.04010.90
5.2.40.0130.04010.99
5.2.30.0170.05010.98
5.2.20.0070.04310.88
5.2.10.0030.04010.62
5.2.00.0070.04010.61
5.1.60.0070.0379.95
5.1.50.0000.0379.94
5.1.40.0070.05010.02
5.1.30.0070.05010.43
5.1.20.0030.04010.43
5.1.10.0130.02710.13
5.1.00.0070.03310.25
5.0.50.0000.0338.40
5.0.40.0070.0278.34
5.0.30.0000.0478.08
5.0.20.0100.0208.19
5.0.10.0000.0408.26
5.0.00.0030.0538.14
4.4.90.0030.0207.91
4.4.80.0000.0237.91
4.4.70.0070.0177.91
4.4.60.0070.0207.91
4.4.50.0030.0207.91
4.4.40.0030.0477.91
4.4.30.0000.0237.91
4.4.20.0030.0307.91
4.4.10.0100.0137.91
4.4.00.0070.0307.91
4.3.110.0030.0307.91
4.3.100.0070.0177.65
4.3.90.0070.0277.60
4.3.80.0000.0377.60
4.3.70.0000.0237.60
4.3.60.0030.0237.60
4.3.50.0030.0207.60
4.3.40.0000.0337.60
4.3.30.0000.0237.60
4.3.20.0030.0277.60
4.3.10.0030.0307.60
4.3.00.0070.0237.17

preferences:
37.6 ms | 401 KiB | 5 Q