3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = ""; $table = "<table style=\"margin: 0 auto;\" border=\"2\" summary=\"Average per Channel\">"; $endTable = "</table>"; $fila = "<tr>"; $endFila = "</tr>"; $cabecera = "<th colspan=\"2\">"; $endCabecera = "</th>"; $detalle = "<td colspan=\"1\">"; $endDetalle = "</td>"; $bold = "<strong>"; $endBold = "</strong>"; $body = $table."\n".$fila; $arr_header_detalle = array(); $arr["functional"]["online"] = "0.9080"; $arr["functional"]["retail"] = "0.4080"; $arr["regression"]["online"] = "0.5080"; $arr["integration"]["online"] = "0.3080"; $arr["integration"]["retail"] = "0.2080"; $tpt = array("automation","functional","regression","integration"); $ch = array("Agnostic","Online","Retail"); for($i=0;$i<sizeOf($tpt);$i++){ $aux_tpt = $tpt[$i]; if(array_key_exists($aux_tpt ,$arr)){ $arr_header_detalle[$aux_tpt]["header"] = $cabecera.$bold.$aux_tpt.$endBold.$endCabecera."\n"; if(isset($arr[$aux_tpt]["online"])){ $arr_header_detalle[$aux_tpt]["Online"] = $detalle.$bold."Online".$endBold.$endDetalle."\n". $detalle.number_format($arr[$aux_tpt]["online"], 2, "." , ".")."%".$endDetalle."\n"; } if(isset($arr[$aux_tpt]["retail"])){ $arr_header_detalle[$aux_tpt]["Retail"] = $detalle.$bold."Retail".$endBold.$endDetalle."\n". $detalle.number_format($arr[$aux_tpt]["retail"], 2, "." , ".")."%".$endDetalle."\n"; } } } for($i=0;$i<sizeOf($tpt);$i++){ $aux_tpt = $tpt[$i]; if(array_key_exists($aux_tpt ,$arr_header_detalle)){ $body .= $arr_header_detalle[$aux_tpt]["header"]; } } $body .= $endFila."\n"; $arr = array("Online"=>array(),"Retail"=>array()); for($i=0;$i<sizeOf($tpt);$i++){ $aux_tpt = $tpt[$i]; if(array_key_exists($aux_tpt ,$arr_header_detalle)){ for($j=0;$j<sizeOf($ch);$j++){ $aux_ch = $ch[$j]; if(isset($arr_header_detalle[$aux_tpt][$aux_ch])){ switch($aux_ch){ case "Online": array_push($arr[$aux_ch],$arr_header_detalle[$aux_tpt][$aux_ch]); break; case "Retail": array_push($arr[$aux_ch],$arr_header_detalle[$aux_tpt][$aux_ch]); break; } } } } } for($j=0;$j<sizeOf($ch);$j++){ $aux_ch = $ch[$j]; if(array_key_exists($aux_ch,$arr)){ $body .= $fila."\n"; for($i=0;$i<sizeOf($arr);$i++){ $body .= $arr[$i]; } $body .= $endFila."\n"; } } $body .= $endTable; echo $body;

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.0160.00318.68
8.3.50.0110.01321.90
8.3.40.0120.00319.01
8.3.30.0070.00719.09
8.3.20.0000.00720.34
8.3.10.0040.00421.90
8.3.00.0040.00422.64
8.2.180.0080.00816.48
8.2.170.0070.00722.96
8.2.160.0070.01021.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00317.88
8.2.110.0030.00622.38
8.2.100.0060.00619.82
8.2.90.0080.00019.34
8.2.80.0000.00817.97
8.2.70.0030.00617.72
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0070.00419.52
8.2.30.0000.00918.18
8.2.20.0050.00317.79
8.2.10.0020.00518.10
8.2.00.0040.00418.21
8.1.280.0150.00325.92
8.1.270.0080.00020.55
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00324.00
8.1.230.0040.00819.14
8.1.220.0000.00917.91
8.1.210.0030.00618.77
8.1.200.0030.00617.48
8.1.190.0040.00417.35
8.1.180.0090.00018.10
8.1.170.0080.00018.70
8.1.160.0050.00222.12
8.1.150.0000.00719.00
8.1.140.0000.00717.47
8.1.130.0040.00417.80
8.1.120.0000.00717.58
8.1.110.0030.00617.45
8.1.100.0030.00517.53
8.1.90.0030.00517.57
8.1.80.0030.00517.55
8.1.70.0040.00417.60
8.1.60.0000.00917.70
8.1.50.0040.00417.61
8.1.40.0040.00417.57
8.1.30.0040.00417.73
8.1.20.0000.00717.66
8.1.10.0000.00817.59
8.1.00.0030.00517.59
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0070.00018.47
8.0.270.0000.00817.40
8.0.260.0000.00817.36
8.0.250.0030.00317.18
8.0.240.0030.00317.11
8.0.230.0000.00717.03
8.0.220.0030.00317.00
8.0.210.0060.00317.05
8.0.200.0060.00317.01
8.0.190.0040.00417.03
8.0.180.0000.01017.05
8.0.170.0050.00317.09
8.0.160.0080.00016.96
8.0.150.0040.00417.09
8.0.140.0040.00416.98
8.0.130.0030.00313.45
8.0.120.0000.00816.93
8.0.110.0040.00417.09
8.0.100.0000.00717.00
8.0.90.0070.00017.02
8.0.80.0120.00317.01
8.0.70.0040.00417.11
8.0.60.0000.00717.09
8.0.50.0050.00316.95
8.0.30.0110.01017.18
8.0.20.0100.00717.46
8.0.10.0040.00417.04
8.0.00.0100.01316.81
7.4.330.0030.00315.15
7.4.320.0060.00016.71
7.4.300.0000.00616.62
7.4.290.0000.00716.69
7.4.280.0080.00416.51
7.4.270.0070.00016.50
7.4.260.0070.00016.62
7.4.250.0040.00416.48
7.4.240.0050.00216.66
7.4.230.0070.00016.71
7.4.220.0150.01216.74
7.4.210.0140.00016.48
7.4.200.0050.00216.75
7.4.160.0060.01116.52
7.4.150.0120.01217.40
7.4.140.0100.01117.86
7.4.130.0120.01116.63
7.4.120.0070.01416.71
7.4.110.0070.01016.66
7.4.100.0110.00616.63
7.4.90.0110.00616.72
7.4.80.0070.01119.39
7.4.70.0120.00416.70
7.4.60.0040.01416.84
7.4.50.0060.00316.64
7.4.40.0090.00816.80
7.4.30.0120.00616.47
7.4.00.0080.00715.12
7.3.330.0000.00613.27
7.3.320.0050.00013.36
7.3.310.0030.00316.36
7.3.300.0050.00216.54
7.3.290.0070.00816.51
7.3.280.0110.00616.53
7.3.270.0090.00917.40
7.3.260.0100.00716.69
7.3.250.0130.00916.57
7.3.240.0110.01016.54
7.3.230.0100.00716.50
7.3.210.0030.01316.54
7.3.200.0120.00619.39
7.3.190.0110.00516.63
7.3.180.0030.01416.47
7.3.170.0130.01016.65
7.3.160.0030.01316.57
7.3.120.0040.01415.18
7.3.110.0100.00715.16
7.3.100.0080.00515.03
7.3.90.0000.01014.71
7.3.80.0090.00614.80
7.3.70.0030.00714.94
7.3.60.0040.00715.01
7.3.50.0100.00015.01
7.3.40.0040.01114.74
7.3.30.0070.01114.83
7.3.20.0030.01016.68
7.3.10.0070.00716.72
7.3.00.0000.01116.70
7.2.330.0120.00616.82
7.2.320.0060.01216.82
7.2.310.0120.00616.56
7.2.300.0030.01316.89
7.2.290.0090.00916.75
7.2.250.0100.00714.95
7.2.240.0100.00915.09
7.2.230.0090.00614.91
7.2.220.0090.00315.27
7.2.210.0030.01015.30
7.2.200.0060.01015.28
7.2.190.0030.00715.10
7.2.180.0060.01214.94
7.2.170.0030.01315.10
7.2.00.0040.00819.55
7.1.330.0060.00615.86
7.1.320.0030.00615.82
7.1.310.0030.00915.96
7.1.300.0000.01116.00
7.1.290.0050.00515.68
7.1.280.0000.01415.86
7.1.270.0060.01015.55
7.1.260.0030.01315.98
7.1.100.0060.00618.24
7.1.70.0040.00817.15
7.1.60.0070.01719.59
7.1.50.0130.01316.70
7.1.00.0000.08022.52
7.0.200.1110.00914.91
7.0.60.0200.07321.66
7.0.50.0030.04017.91
7.0.40.0200.07320.05
7.0.30.0170.04720.32
7.0.20.0270.08019.96
7.0.10.0130.08720.14
7.0.00.0130.08020.24
5.6.280.0000.03321.04
5.6.210.0070.07720.77
5.6.200.0030.04318.22
5.6.190.0030.07320.77
5.6.180.0170.05020.60
5.6.170.0370.08020.38
5.6.160.0070.06720.57
5.6.150.0200.06718.07
5.6.140.0030.08318.12
5.6.130.0100.08318.20
5.6.120.0030.07021.16
5.6.110.0070.07721.02
5.6.100.0100.08321.13
5.6.90.0070.08720.89
5.6.80.0070.08320.55
5.5.350.0230.06320.30
5.5.340.0070.04317.98
5.5.330.0100.07020.42
5.5.320.0300.06020.17
5.5.310.0470.04720.34
5.5.300.0030.08718.00
5.5.290.0030.09018.00
5.5.280.0030.04020.99
5.5.270.0030.08020.77
5.5.260.0000.04320.81
5.5.250.0070.08020.67
5.5.240.0230.07720.14
5.4.450.0200.03719.37
5.4.440.0200.07319.41
5.4.430.0200.04719.18
5.4.420.0270.04319.20
5.4.410.0100.05019.09
5.4.400.0130.05318.87
5.4.390.0270.06319.06
5.4.380.0170.04019.06
5.4.370.0370.03319.15
5.4.360.0270.05319.21
5.4.350.0300.06719.25
5.4.340.0270.07019.04
5.4.320.0200.05019.01
5.4.310.0300.05719.23
5.4.300.0270.07019.30
5.4.290.0230.04018.89
5.4.280.0200.05318.85
5.4.270.0270.07318.89
5.4.260.0230.07018.99
5.4.250.0170.05018.99
5.4.240.0200.03718.88
5.4.230.0130.04019.09
5.4.220.0130.03718.84
5.4.210.0270.02318.95
5.4.200.0130.03719.07
5.4.190.0100.04318.88
5.4.180.0030.04719.14
5.4.170.0170.03318.88
5.4.160.0130.03719.04
5.4.150.0100.04018.83
5.4.140.0170.03016.24
5.4.130.0100.04016.23
5.4.120.0170.03316.22
5.4.110.0100.04016.40
5.4.100.0130.03316.51
5.4.90.0100.03716.52
5.4.80.0070.04316.49
5.4.70.0130.04716.50
5.4.60.0200.02716.29
5.4.50.0100.03716.45
5.4.40.0170.03316.49
5.4.30.0070.04016.29
5.4.20.0230.02716.33
5.4.10.0170.03316.39
5.4.00.0100.03715.59
5.3.290.0270.05714.55
5.3.280.0330.03714.56
5.3.270.0170.03714.56
5.3.260.0200.04714.61
5.3.250.0130.03714.57
5.3.240.0130.03714.57
5.3.230.0170.04714.57
5.3.220.0270.03714.55
5.3.210.0100.04014.61
5.3.200.0130.03714.57
5.3.190.0170.03314.55
5.3.180.0100.04014.41
5.3.170.0130.03714.62
5.3.160.0130.03714.54
5.3.150.0170.03314.54
5.3.140.0230.02714.51
5.3.130.0100.04014.53
5.3.120.0130.03714.50
5.3.110.0200.03314.61
5.3.100.0170.03314.04
5.3.90.0100.05313.99
5.3.80.0400.03714.04
5.3.70.0200.07013.93
5.3.60.0200.05014.00
5.3.50.0170.04713.83
5.3.40.0230.06713.92
5.3.30.0270.07013.86
5.3.20.0270.06313.65
5.3.10.0270.06013.50
5.3.00.0230.03013.63
5.2.170.0230.05311.05
5.2.160.0230.03311.05
5.2.150.0200.04311.23
5.2.140.0130.04011.13
5.2.130.0200.03311.36
5.2.120.0130.04011.08
5.2.110.0130.03311.13
5.2.100.0130.04311.20
5.2.90.0200.03011.18
5.2.80.0170.05011.21
5.2.70.0130.03711.13
5.2.60.0130.03011.02
5.2.50.0100.04010.92
5.2.40.0130.06311.25
5.2.30.0200.03311.05
5.2.20.0170.04710.94
5.2.10.0270.04710.84
5.2.00.0130.03310.87
5.1.60.0230.04310.17
5.1.50.0170.04010.07
5.1.40.0200.04710.05
5.1.30.0170.05310.54
5.1.20.0130.05310.50
5.1.10.0100.04710.06
5.1.00.0130.04310.14
5.0.50.0070.0438.61
5.0.40.0100.0438.43
5.0.30.0130.0578.24
5.0.20.0130.0338.30
5.0.10.0130.0438.23
5.0.00.0130.0478.43
4.4.90.0070.0177.70
4.4.80.0100.0337.70
4.4.70.0100.0337.70
4.4.60.0130.0277.70
4.4.50.0070.0277.70
4.4.40.0130.0477.70
4.4.30.0070.0237.70
4.4.20.0100.0337.70
4.4.10.0070.0237.70
4.4.00.0170.0477.70
4.3.110.0100.0307.70
4.3.100.0100.0337.70
4.3.90.0130.0237.70
4.3.80.0100.0277.70
4.3.70.0130.0107.70
4.3.60.0070.0307.70
4.3.50.0130.0337.70
4.3.40.0100.0507.70
4.3.30.0030.0377.70
4.3.20.0070.0377.70
4.3.10.0030.0377.70
4.3.00.0070.0377.70

preferences:
64.36 ms | 401 KiB | 5 Q