3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contenuto = file_get_contents('http://www.mistermatic.it/api/?cc=89091203'); // echo '<pre>'.var_dump(json_decode($contenuto)).'</pre>'; $lista = json_decode($contenuto); $chiavi = array( "ad_number", "vehicle_type", "title", "sub_title", "make", "model", "version", "vehicle_class", "vehicle_category", "damaged", "first_registration_date", "mileage", "power_kw", "power_cv", "fuel_type", "color", "color_type", "price", "last_update", "description", "company_logo", "images_number" ); echo "<table border='1' cellspacing='0'>"; echo "<tr>"; for($j=0; $j<count($chiavi); $j++){ echo "<td>".$chiavi[$j]."</td>"; } echo "</tr>"; for($i=0; $i<count($lista); $i++){ $auto[$i] = (array) $lista[$i]; /* $chiavi = array_keys($auto[$i]); echo "<tr>"; for($j=0; $j<count($chiavi); $j++){ echo "<td>".$chiavi[$j]."</td>"; } echo "</tr>"; */ echo "<tr style='white-space: nowrap;'>"; for($j=0; $j<count($chiavi); $j++){ $chiave = $chiavi[$j]; echo "<td>".$auto[$i][$chiave]."</td>"; } echo "</tr>"; } echo "</table>"; ?>

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.0000.01516.86
8.3.50.0100.00921.32
8.3.40.0040.01118.84
8.3.30.0070.00719.01
8.3.20.0000.00820.68
8.3.10.0080.00023.78
8.3.00.0060.00318.18
8.2.180.0130.00317.00
8.2.170.0070.01122.96
8.2.160.0130.00720.60
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0000.00917.88
8.2.110.0030.00722.27
8.2.100.0100.00318.00
8.2.90.0040.00419.47
8.2.80.0030.00617.97
8.2.70.0060.00317.88
8.2.60.0030.00518.02
8.2.50.0060.00318.07
8.2.40.0040.00419.46
8.2.30.0050.00318.25
8.2.20.0050.00318.02
8.2.10.0000.00818.32
8.2.00.0040.00418.38
8.1.280.0170.00325.92
8.1.270.0130.00320.48
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00322.86
8.1.230.0030.00917.60
8.1.220.0060.00317.78
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0050.00317.47
8.1.180.0050.00318.10
8.1.170.0080.00018.71
8.1.160.0040.00423.98
8.1.150.0040.00419.13
8.1.140.0060.00317.64
8.1.130.0050.00217.81
8.1.120.0040.00417.57
8.1.110.0000.00717.67
8.1.100.0080.00017.50
8.1.90.0000.00717.59
8.1.80.0030.00517.59
8.1.70.0040.00417.57
8.1.60.0050.00317.72
8.1.50.0030.00517.67
8.1.40.0060.00317.61
8.1.30.0060.00317.84
8.1.20.0000.00817.70
8.1.10.0020.00517.73
8.1.00.0030.00617.51
8.0.300.0060.00318.77
8.0.290.0000.00817.00
8.0.280.0000.00718.76
8.0.270.0030.00517.52
8.0.260.0030.00317.55
8.0.250.0050.00317.31
8.0.240.0030.00317.17
8.0.230.0030.00717.18
8.0.220.0040.00417.17
8.0.210.0070.00017.05
8.0.200.0030.00317.10
8.0.190.0070.00417.16
8.0.180.0080.00017.16
8.0.170.0030.00517.20
8.0.160.0040.00417.06
8.0.150.0000.00717.02
8.0.140.0050.00317.08
8.0.130.0000.00613.70
8.0.120.0000.00817.13
8.0.110.0040.00417.16
8.0.100.0040.00417.12
8.0.90.0000.00817.30
8.0.80.0060.01617.24
8.0.70.0040.00417.11
8.0.60.0040.00417.28
8.0.50.0080.00017.23
8.0.30.0070.01117.41
8.0.20.0090.01817.40
8.0.10.0000.00717.23
8.0.00.0120.00717.04
7.4.330.0000.00615.36
7.4.320.0000.00616.71
7.4.300.0040.00416.70
7.4.290.0030.00716.83
7.4.280.0050.00316.85
7.4.270.0040.00416.69
7.4.260.0030.00316.68
7.4.250.0000.00816.72
7.4.240.0050.00316.73
7.4.230.0080.00016.77
7.4.220.0160.01316.84
7.4.210.0060.00916.84
7.4.200.0040.00416.75
7.4.160.0090.00616.75
7.4.150.0110.01517.40
7.4.140.0120.00717.86
7.4.130.0110.00916.77
7.4.120.0120.00916.85
7.4.110.0070.01116.78
7.4.100.0090.01216.73
7.4.90.0150.00316.78
7.4.80.0120.00619.39
7.4.70.0100.01316.78
7.4.60.0090.00916.81
7.4.50.0030.00516.48
7.4.40.0120.01216.85
7.4.30.0120.01216.73
7.4.00.0110.00715.20
7.3.330.0000.00513.41
7.3.320.0030.00313.36
7.3.310.0040.00416.66
7.3.300.0000.00816.60
7.3.290.0130.00616.67
7.3.280.0070.01316.64
7.3.270.0050.01317.40
7.3.260.0120.01616.82
7.3.250.0130.00916.70
7.3.240.0110.00716.63
7.3.230.0160.00316.81
7.3.210.0100.01416.82
7.3.200.0140.00916.75
7.3.190.0090.00916.63
7.3.180.0130.00316.87
7.3.170.0110.00616.60
7.3.160.0190.00016.86
7.3.10.0110.00316.96
7.3.00.0110.00016.84
7.2.330.0060.01316.65
7.2.320.0130.01016.82
7.2.310.0070.01116.94
7.2.300.0120.00616.98
7.2.290.0090.00916.95
7.2.130.0030.00917.05
7.2.120.0000.01517.21
7.2.110.0060.00817.04
7.2.100.0080.00817.36
7.2.90.0080.00317.18
7.2.80.0060.00617.39
7.2.70.0030.01017.42
7.2.60.0050.00717.14
7.2.50.0070.00717.26
7.2.40.0070.01017.45
7.2.30.0090.00017.17
7.2.20.0090.00017.04
7.2.10.0180.00016.99
7.2.00.0070.00818.25
7.1.250.0060.00616.14
7.1.200.0100.00315.82
7.1.100.0030.01018.49
7.1.70.0000.01417.40
7.1.60.0100.01719.13
7.1.50.0130.01017.04
7.1.00.0100.06722.65
7.0.200.0320.00415.13
7.0.60.0070.03720.42
7.0.50.0130.04718.28
7.0.40.0130.03720.48
7.0.30.0270.05320.57
7.0.20.0200.04720.50
7.0.10.0070.04020.54
7.0.00.0070.04020.70
5.6.280.0000.06721.35
5.6.210.0100.07720.77
5.6.200.0000.04318.50
5.6.190.0070.05321.07
5.6.180.0230.04721.08
5.6.170.0300.06320.81
5.6.160.0000.09320.88
5.6.150.0100.03318.52
5.6.140.0030.04018.52
5.6.130.0100.07318.54
5.6.120.0100.08721.51
5.6.110.0100.09021.54
5.6.100.0170.05321.53
5.6.90.0070.08721.41
5.6.80.0030.07320.93
5.5.350.0270.08320.74
5.5.340.0100.08018.33
5.5.330.0100.07720.85
5.5.320.0430.08020.72
5.5.310.0270.07720.65
5.5.300.0070.08318.38
5.5.290.0070.07018.37
5.5.280.0070.08721.30
5.5.270.0130.07321.08
5.5.260.0170.05721.14
5.5.250.0100.08020.86
5.5.240.0070.05320.68
5.4.450.0630.06019.68
5.4.440.0530.06719.64
5.4.430.0630.05719.55
5.4.420.0670.06019.64
5.4.410.0670.05319.55
5.4.400.0670.05319.57
5.4.390.0800.05719.31
5.4.380.0700.05719.23
5.4.370.0770.05319.37
5.4.360.0930.04019.55
5.4.350.0700.06019.48
5.4.340.0800.05019.35
5.4.320.0800.06319.32
5.4.310.0770.05319.38
5.4.300.0670.06019.47
5.4.290.0730.05319.39
5.4.280.0830.04719.52
5.4.270.0770.05019.22
5.4.260.0830.04319.35
5.4.250.0830.04719.50
5.4.240.0830.05319.46
5.4.230.0770.05019.40
5.4.220.0800.05019.54
5.4.210.0800.05019.31
5.4.200.0800.05319.22
5.4.190.0770.05319.50
5.4.180.0830.05019.23
5.4.170.0900.06019.34
5.4.160.0830.04319.33
5.4.150.0770.05319.33
5.4.140.0800.04716.80
5.4.130.0800.04316.75
5.4.120.0670.05016.83
5.4.110.0830.06016.75
5.4.100.0800.04716.73
5.4.90.0730.05316.59
5.4.80.0670.05716.71
5.4.70.0270.06317.13
5.4.60.0200.03316.94
5.4.50.0070.04717.12
5.4.40.0130.03316.92
5.4.30.0170.03717.02
5.4.20.0130.04017.17
5.4.10.0270.04717.14

preferences:
60.54 ms | 401 KiB | 5 Q