3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("superheroes_spider-man_name", 123456); define("enableIPSLogList", false); //IPSLog mit Liste aller Variablen define("enableIPSLogSet", false); //IPSLog mit Liste aller Variablen die gesetzt wurden define("enableIPSLogMissing", false); //IPSLog mit Liste aller nicht konfigurierten Variablen define("enableEchoList", false); //IPSLog mit Liste aller Variablen define("enableEchoSet", false); //IPSLog mit Liste aller Variablen die gesetzt wurden define("enableEchoMissing", false); //IPSLog mit Liste aller nicht konfigurierten Variablen $superheroes = array( "spider-man" => array( "name" => "Peter Parker", "email" => "peterparker@mail.com", ), "super-man" => array( "name" => "Clark Kent", "email" => "clarkkent@mail.com", ), "iron-man" => array( "name" => "Harry Potter", "email" => "harrypotter@mail.com", "nicknames" => array( "name1" => "HP", "name2" => "Potter", ), "test" => array( "test1" => "test1text", ), ) ); //print_r($superheroes); //Funktion zur Ausgabe von IPSLogs //funcIPSLog(("SENDER"), ("REPORT"), $enableIPSLog); //funcIPSLog(("SENDER"), ("REPORT"), $enableIPSLogMissing); function funcIPSLog($sender, $report, $check) { if($check) { IPS_LogMessage($sender, $report); } } //funcEcho(("MESSAGE"), $enableEchoMissing); function funcEcho($message, $check) { if($check) { echo ($message); } } //setVariables_fromArray($array, "prefix"); function setVariables_fromArray($array, $name) { forEach($array as $index => $item) { if(is_Array($item)) { $nameAltered = $name . "_" . $index; funcIPSLog(("=========="), ("=========="), enableIPSLog); funcIPSLog(("ARRAY HEAD"), ($nameAltered), enableIPSLog); funcEcho(("==========\n"), enableEchoLog); funcEcho(("ARRAY HEAD: '$nameAltered' \n"), enableEchoLog); setVariables_fromArray($item, $nameAltered); } else { $nameVariable = $name . "_" . $index; //funcIPSLog(("VARIABLE: " . $nameVariable), ("Value: " . $item), enableIPSLogList); funcEcho(("VARIABLE: '$nameVariable' VALUE: '$item' \n"), enableEchoList); if(defined($nameVariable)) { //SetValueFloat(${$nameVariable}, $item); funcIPSLog(("SET: "), ("Die Variable '$nameVariable' mit dem Wert '$item' wurde gesetzt. \n"), enableIPSLogSet); funcEcho(("SET: Die Variable '$nameVariable' mit dem Wert '$item' wurde gesetzt. \n"), enableEchoSet); } else { funcIPSLog(("!!Meldung NetAtmo:"), ("Die Variable " . $nameVariable . " mit dem Wert " . $item . " ist nicht konfiguriert."), enableIPSLogMissing); funcEcho(("!! NetAtmo MELDUNG: Die Variable '$nameVariable' mit dem Wert '$item' ist nicht konfiguriert. \n"), enableEchoMissing); } } } } setVariables_fromArray($superheroes, "superheroes"); ?>

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.0110.00318.30
8.3.50.0110.01122.09
8.3.40.0150.00618.88
8.3.30.0070.00719.02
8.3.20.0040.00420.34
8.3.10.0040.00421.67
8.3.00.0030.00619.38
8.2.180.0120.00318.66
8.2.170.0070.01122.96
8.2.160.0130.00020.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00417.50
8.2.120.0080.00026.35
8.2.110.0070.00320.95
8.2.100.0060.00617.87
8.2.90.0040.00419.28
8.2.80.0030.00517.97
8.2.70.0030.00917.63
8.2.60.0090.00318.03
8.2.50.0090.00318.07
8.2.40.0110.00019.34
8.2.30.0030.00320.74
8.2.20.0050.00317.88
8.2.10.0040.00418.25
8.2.00.0000.00818.27
8.1.280.0090.00625.92
8.1.270.0040.00423.96
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0090.00022.30
8.1.230.0070.00418.98
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0060.00319.14
8.1.180.0000.00818.10
8.1.170.0090.00018.66
8.1.160.0040.00422.00
8.1.150.0050.00218.95
8.1.140.0040.00419.55
8.1.130.0070.00017.68
8.1.120.0030.00517.57
8.1.110.0000.00717.48
8.1.100.0070.00017.49
8.1.90.0050.00217.50
8.1.80.0050.00317.55
8.1.70.0000.00717.41
8.1.60.0040.00417.65
8.1.50.0050.00317.57
8.1.40.0080.00017.46
8.1.30.0050.00317.61
8.1.20.0040.00417.66
8.1.10.0000.00817.71
8.1.00.0040.00417.54
8.0.300.0040.00420.10
8.0.290.0070.00017.00
8.0.280.0070.00018.42
8.0.270.0000.00717.32
8.0.260.0030.00317.27
8.0.250.0030.00517.12
8.0.240.0030.00317.00
8.0.230.0030.00317.09
8.0.220.0040.00417.05
8.0.210.0070.00017.06
8.0.200.0030.00317.11
8.0.190.0000.00817.11
8.0.180.0000.00816.97
8.0.170.0040.00416.94
8.0.160.0040.00416.95
8.0.150.0030.00616.95
8.0.140.0000.00716.93
8.0.130.0070.00013.45
8.0.120.0040.00416.99
8.0.110.0040.00416.99
8.0.100.0020.00517.10
8.0.90.0070.00016.91
8.0.80.0160.00017.02
8.0.70.0050.00216.92
8.0.60.0040.00417.05
8.0.50.0000.00716.85
8.0.30.0090.01017.22
8.0.20.0110.00817.42
8.0.10.0040.00417.09
8.0.00.0090.01116.88
7.4.330.0050.00016.77
7.4.320.0070.00016.50
7.4.300.0030.00316.67
7.4.290.0070.00016.53
7.4.280.0040.00416.70
7.4.270.0000.00716.57
7.4.260.0000.00916.69
7.4.250.0030.00316.55
7.4.240.0000.00716.66
7.4.230.0070.00016.50
7.4.220.0060.01616.77
7.4.210.0100.00516.63
7.4.200.0030.00316.69
7.4.160.0130.00716.71
7.4.150.0190.00317.40
7.4.140.0090.01317.86
7.4.130.0110.00716.60
7.4.120.0150.00616.56
7.4.110.0120.00616.55
7.4.100.0070.01416.41
7.4.90.0030.01316.64
7.4.80.0140.00319.39
7.4.70.0140.00616.42
7.4.60.0060.00916.65
7.4.50.0040.01116.84
7.4.40.0100.00716.56
7.4.30.0100.01316.77
7.4.00.0060.01014.80
7.3.330.0020.00213.43
7.3.320.0060.00013.50
7.3.310.0000.00716.29
7.3.300.0050.00316.29
7.3.290.0000.00716.30
7.3.280.0080.00716.44
7.3.270.0030.02117.40
7.3.260.0160.00616.42
7.3.250.0110.00616.59
7.3.240.0080.01216.53
7.3.230.0060.01216.55
7.3.210.0140.00316.72
7.3.200.0030.01316.56
7.3.190.0090.00916.57
7.3.180.0070.01316.54
7.3.170.0180.00416.66
7.3.160.0160.00016.64
7.3.10.0070.01016.86
7.3.00.0000.01116.83
7.2.330.0080.00816.75
7.2.320.0120.00916.82
7.2.310.0140.00416.64
7.2.300.0170.00316.58
7.2.290.0140.00616.68
7.2.130.0080.00616.60
7.2.120.0030.01316.81
7.2.110.0030.01116.82
7.2.100.0070.00716.76
7.2.90.0070.01016.97
7.2.80.0030.00617.04
7.2.70.0030.01016.89
7.2.60.0070.00716.79
7.2.50.0000.01317.00
7.2.40.0070.00716.82
7.2.30.0070.00717.09
7.2.20.0060.01217.06
7.2.10.0080.00816.99
7.2.00.0100.01018.09
7.1.250.0030.00615.83
7.1.200.0070.00715.97
7.1.100.0080.00318.07
7.1.70.0030.00617.25
7.1.60.0130.01019.36
7.1.50.0120.01216.85
7.1.00.0000.07722.48
7.0.200.0030.00616.78
7.0.60.0130.06720.00
7.0.50.0000.08317.88
7.0.40.0030.04320.02
7.0.30.0300.04720.24
7.0.20.0300.08020.24
7.0.10.0100.07320.15
7.0.00.0170.06720.09
5.6.280.0070.06321.08
5.6.210.0030.06020.74
5.6.200.0030.04018.30
5.6.190.0170.07320.39
5.6.180.0230.08020.47
5.6.170.0230.08020.52
5.6.160.0070.08020.42
5.6.150.0030.05318.31
5.6.140.0000.05718.18
5.6.130.0000.04718.16
5.6.120.0100.05321.14
5.6.110.0030.04021.17
5.6.100.0200.07321.01
5.6.90.0030.09021.00
5.6.80.0130.05720.39
5.5.350.0270.05720.43
5.5.340.0100.05317.96
5.5.330.0070.08020.13
5.5.320.0300.07020.35
5.5.310.0170.04320.29
5.5.300.0030.04018.02
5.5.290.0030.05717.93
5.5.280.0100.08720.79
5.5.270.0030.05320.70
5.5.260.0130.05320.89
5.5.250.0000.05020.60
5.5.240.0270.07020.38

preferences:
55.97 ms | 401 KiB | 5 Q