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[$aux_ch]);$i++){ $body .= $arr[$aux_ch][$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.0150.00016.88
8.3.50.0280.01322.06
8.3.40.0060.00918.62
8.3.30.0080.00619.35
8.3.20.0040.00420.29
8.3.10.0080.00021.79
8.3.00.0040.00422.43
8.2.180.0140.00716.75
8.2.170.0120.00322.96
8.2.160.0030.01322.24
8.2.150.0070.00725.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.01017.75
8.2.110.0100.00021.18
8.2.100.0080.00418.03
8.2.90.0000.00818.09
8.2.80.0080.00019.23
8.2.70.0080.00018.05
8.2.60.0080.00019.65
8.2.50.0080.00018.10
8.2.40.0000.00820.74
8.2.30.0040.00418.29
8.2.20.0000.00817.87
8.2.10.0070.00018.17
8.2.00.0030.00618.22
8.1.280.0100.00725.92
8.1.270.0050.00320.36
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.15
8.1.230.0070.00421.08
8.1.220.0000.00817.78
8.1.210.0030.00518.77
8.1.200.0050.00517.48
8.1.190.0060.00317.23
8.1.180.0000.00918.10
8.1.170.0000.00918.78
8.1.160.0040.00422.25
8.1.150.0000.00718.91
8.1.140.0040.00417.46
8.1.130.0000.00717.84
8.1.120.0040.00417.56
8.1.110.0030.00817.56
8.1.100.0000.00817.53
8.1.90.0070.00017.56
8.1.80.0000.00717.42
8.1.70.0000.00817.50
8.1.60.0000.00917.70
8.1.50.0040.00417.54
8.1.40.0050.00317.64
8.1.30.0030.00517.79
8.1.20.0030.00617.66
8.1.10.0040.00417.69
8.1.00.0050.00317.63
8.0.300.0020.00520.16
8.0.290.0050.00317.00
8.0.280.0040.00418.55
8.0.270.0050.00217.36
8.0.260.0060.00017.23
8.0.250.0000.00717.03
8.0.240.0000.00817.05
8.0.230.0030.00316.97
8.0.220.0070.00017.02
8.0.210.0040.00416.96
8.0.200.0070.00317.01
8.0.190.0060.00317.02
8.0.180.0040.00717.05
8.0.170.0040.00417.02
8.0.160.0070.00016.77
8.0.150.0000.00816.89
8.0.140.0000.00816.92
8.0.130.0050.00013.38
8.0.120.0030.00517.01
8.0.110.0000.00817.01
8.0.100.0050.00317.02
8.0.90.0000.00716.82
8.0.80.0090.00617.00
8.0.70.0040.00417.06
8.0.60.0040.00417.09
8.0.50.0000.00717.02
8.0.30.0100.01017.09
8.0.20.0140.00517.43
8.0.10.0040.00417.02
8.0.00.0090.01216.87
7.4.330.0000.00515.04
7.4.320.0000.00616.75
7.4.300.0000.00616.70
7.4.290.0030.00316.68
7.4.280.0030.00616.63
7.4.270.0000.00716.71
7.4.260.0050.00316.70
7.4.250.0050.00316.75
7.4.240.0030.00416.68
7.4.230.0030.00316.69
7.4.220.0100.01316.59
7.4.210.0090.00616.55
7.4.200.0000.00716.64
7.4.160.0110.00516.47
7.4.150.0110.00817.40
7.4.140.0080.01117.86
7.4.130.0090.01016.54
7.4.120.0100.01116.59
7.4.110.0120.00916.80
7.4.100.0070.01016.57
7.4.90.0070.01016.48
7.4.80.0090.00919.39
7.4.70.0150.00416.46
7.4.60.0120.00616.68
7.4.50.0000.00816.51
7.4.40.0190.00416.47
7.4.30.0070.01016.57
7.4.00.0030.01214.83
7.3.330.0000.00513.20
7.3.320.0030.00313.20
7.3.310.0000.00716.49
7.3.300.0070.00016.49
7.3.290.0060.01116.49
7.3.280.0060.00816.49
7.3.270.0120.00617.40
7.3.260.0060.01616.67
7.3.250.0100.00916.58
7.3.240.0110.00616.50
7.3.230.0110.00516.66
7.3.210.0070.01016.40
7.3.200.0100.00716.43
7.3.190.0030.01316.63
7.3.180.0030.01316.56
7.3.170.0120.00916.58
7.3.160.0160.00016.43
7.3.120.0090.00814.80
7.3.110.0100.00714.84
7.3.100.0050.01015.06
7.3.90.0080.00814.87
7.3.80.0060.00914.94
7.3.70.0050.01014.93
7.3.60.0030.01014.77
7.3.50.0050.00714.88
7.3.40.0060.00815.01
7.3.30.0020.01415.03
7.3.20.0040.00916.79
7.3.10.0030.00816.76
7.3.00.0070.00816.62
7.2.330.0030.01416.90
7.2.320.0100.00716.90
7.2.310.0130.00316.50
7.2.300.0080.01116.84
7.2.290.0060.01216.93
7.2.250.0090.00915.13
7.2.240.0080.00915.17
7.2.230.0070.00515.29
7.2.220.0050.01014.98
7.2.210.0050.00915.24
7.2.200.0060.00715.17
7.2.190.0050.00714.88
7.2.180.0090.00715.20
7.2.170.0060.00815.14
7.2.160.0030.01415.15
7.2.150.0090.00616.84
7.2.140.0050.00516.90
7.2.130.0110.00716.69
7.2.120.0040.01117.05
7.2.110.0020.01216.78
7.2.100.0030.00716.75
7.2.90.0000.01317.09
7.2.80.0070.00716.98
7.2.70.0030.00716.76
7.2.60.0050.00917.04
7.2.50.0070.00717.00
7.2.40.0060.01216.96
7.2.30.0090.00616.87
7.2.20.0030.01216.96
7.2.10.0030.00617.10
7.2.00.0030.01018.26
7.1.330.0070.00915.82
7.1.320.0050.01015.73
7.1.310.0090.00315.83
7.1.300.0080.00815.82
7.1.290.0050.00715.63
7.1.280.0030.00915.78
7.1.270.0050.01015.72
7.1.260.0050.01215.73
7.1.250.0040.00715.54
7.1.200.0030.01315.77
7.1.100.0090.00617.72
7.1.70.0050.00516.96
7.1.60.0170.00719.59
7.1.50.0100.01416.92
7.1.00.0000.08022.37
7.0.200.0680.00414.64
7.0.60.0070.08319.87
7.0.50.0000.05717.86
7.0.40.0100.08720.08
7.0.30.0570.05020.20
7.0.20.0430.06720.33
7.0.10.0200.06720.08
7.0.00.0030.07020.19
5.6.280.0030.03021.00
5.6.210.0070.08320.52
5.6.200.0070.06018.15
5.6.190.0070.09020.45
5.6.180.3000.03720.60
5.6.170.0300.07020.51
5.6.160.0070.05020.55
5.6.150.0030.05318.16
5.6.140.0000.08718.15
5.6.130.0100.03318.18
5.6.120.0100.08021.06
5.6.110.0070.06721.11
5.6.100.0170.07020.98
5.6.90.0100.08321.09
5.6.80.0000.09020.43
5.6.70.0230.03020.51
5.5.350.0230.08320.45
5.5.340.0000.04317.93
5.5.330.0000.04320.40
5.5.320.0470.04020.37
5.5.310.0270.03320.38
5.5.300.0070.06717.90
5.5.290.0070.09017.89
5.5.280.0100.08020.81
5.5.270.0070.05720.77
5.5.260.0070.04020.77
5.5.250.0100.07720.59
5.5.240.0130.03720.20
5.4.450.0070.05719.42
5.4.440.0830.06319.51
5.4.430.0800.06719.16
5.4.420.0700.05019.41
5.4.410.0700.05019.09
5.4.400.0600.05719.20
5.4.390.0630.05719.16
5.4.380.0630.05019.34
5.4.370.0830.05019.21
5.4.360.0900.05018.82
5.4.350.0800.05718.82
5.4.340.0870.05718.93
5.4.320.0930.06319.31
5.4.310.0830.04719.14
5.4.300.0830.04319.06
5.4.290.0970.03718.93
5.4.280.0630.06018.82
5.4.270.0830.05019.21
5.4.260.0900.04718.93
5.4.250.0830.05719.10
5.4.240.0600.06318.84
5.4.230.0730.04319.27
5.4.220.0700.05019.13
5.4.210.0670.05319.13
5.4.200.0930.05316.87
5.4.190.0700.05019.28
5.4.180.0800.06019.17
5.4.170.0770.06319.07
5.4.160.1100.05319.14
5.4.150.0930.07319.26
5.4.140.0870.08016.54
5.4.130.0700.05316.31
5.4.120.0770.05716.37
5.4.110.0830.04716.53
5.4.100.0800.05016.30
5.4.90.0700.05716.23
5.4.80.0730.05716.41
5.4.70.0830.05316.47
5.4.60.0800.04716.48
5.4.50.0770.04716.40
5.4.40.0870.06016.50
5.4.30.0600.05316.54
5.4.20.0870.06016.17
5.4.10.0670.05016.50
5.4.00.0770.05315.75
5.3.290.0700.06014.60
5.3.280.0630.05014.61
5.3.270.0800.05314.49
5.3.260.0700.05014.65
5.3.250.0630.05714.53
5.3.240.0570.05714.56
5.3.230.0600.05314.55
5.3.220.0600.06714.61
5.3.210.0670.05014.49
5.3.200.0600.05014.57
5.3.190.0700.04714.54
5.3.180.0800.03014.50
5.3.170.0600.05014.47
5.3.160.0700.04314.59
5.3.150.0730.05314.48
5.3.140.0830.04314.60
5.3.130.0870.05314.49
5.3.120.0770.06314.58
5.3.110.0800.06014.48
5.3.100.0800.05713.95
5.3.90.0630.05014.08
5.3.80.0730.04713.89
5.3.70.0800.05013.88
5.3.60.0630.05313.95
5.3.50.0600.05013.92
5.3.40.0530.06313.87
5.3.30.0530.05313.95
5.3.20.0600.05313.76
5.3.10.0730.04013.56
5.3.00.0600.05013.68
5.2.170.0570.03711.21
5.2.160.0530.04311.25
5.2.150.0600.03311.18
5.2.140.0500.04711.21
5.2.130.0570.03711.11
5.2.120.0470.04311.05
5.2.110.0600.03311.12
5.2.100.0570.04011.28
5.2.90.0500.04311.25
5.2.80.0500.04711.11
5.2.70.0500.04311.11
5.2.60.0470.04311.04
5.2.50.0500.04011.01
5.2.40.0400.04011.03
5.2.30.0530.06311.07
5.2.20.0430.04710.94
5.2.10.0430.03711.05
5.2.00.0330.05310.88
5.1.60.0470.03310.08
5.1.50.0400.03310.03
5.1.40.0470.02710.00
5.1.30.0430.03310.41
5.1.20.0430.04010.55
5.1.10.0430.03710.24
5.1.00.0400.03310.10
5.0.50.0300.0278.58
5.0.40.0170.0308.44
5.0.30.0230.0408.43
5.0.20.0200.0278.27
5.0.10.0300.0308.27
5.0.00.0200.0478.42
4.4.90.0200.0236.00
4.4.80.0170.0235.99
4.4.70.0200.0205.98
4.4.60.0230.0236.02
4.4.50.0230.0206.01
4.4.40.0370.0305.99
4.4.30.0200.0275.88
4.4.20.0270.0236.04
4.4.10.0170.0276.05
4.4.00.0300.0375.96
4.3.110.0230.0235.87
4.3.100.0230.0235.80
4.3.90.0230.0235.88
4.3.80.0270.0275.99
4.3.70.0200.0235.87
4.3.60.0270.0235.77
4.3.50.0200.0275.96
4.3.40.0170.0375.69
4.3.30.0070.0274.59
4.3.20.0130.0234.62
4.3.10.0100.0234.45
4.3.00.0130.0207.41

preferences:
61.11 ms | 401 KiB | 5 Q