3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prop = array("Santa Clara" => 100, "San Pedro de Alcántara" => 200, "Nagüeles" =>300); foreach($prop as $key => $val){ if (!array_key_exists("Torremolinos",$prop)){ continue; } else{ echo 'key='.$key.' '.'val='.$val; } } /* if ((array_key_exists("Santa Clara",$prop) && array_key_exists("San Pedro de Alcántara",$prop)) ) { echo "Array Key exists...". $prop["Nagüeles"]; } else { echo "Array Key does not exist..."; } */

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.70.0160.00318.31
8.3.60.0100.00718.30
8.3.50.0160.00517.44
8.3.40.0090.00619.02
8.3.30.0120.00318.77
8.3.20.0040.00420.35
8.3.10.0070.00021.82
8.3.00.0000.00820.89
8.2.190.0110.01118.42
8.2.180.0100.01018.29
8.2.170.0070.00722.96
8.2.160.0110.00422.20
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00422.08
8.2.120.0000.00826.35
8.2.110.0000.01019.25
8.2.100.0090.00317.93
8.2.90.0050.00319.22
8.2.80.0060.00317.97
8.2.70.0000.01017.75
8.2.60.0030.00518.03
8.2.50.0030.00518.10
8.2.40.0070.00020.59
8.2.30.0000.01019.30
8.2.20.0000.00718.21
8.2.10.0000.00817.94
8.2.00.0040.00418.05
8.1.280.0110.00425.92
8.1.270.0050.00223.82
8.1.260.0150.00026.35
8.1.250.0080.00028.09
8.1.240.0050.00521.30
8.1.230.0080.00417.70
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0030.00717.36
8.1.190.0040.00417.10
8.1.180.0090.00018.10
8.1.170.0000.00818.49
8.1.160.0000.00718.91
8.1.150.0040.00420.13
8.1.140.0040.00419.47
8.1.130.0000.00718.91
8.1.120.0040.00417.37
8.1.110.0000.00717.44
8.1.100.0070.00017.34
8.1.90.0030.00317.36
8.1.80.0070.00017.47
8.1.70.0030.00317.41
8.1.60.0090.00317.58
8.1.50.0000.00717.56
8.1.40.0000.00817.53
8.1.30.0050.00317.63
8.1.20.0040.00417.67
8.1.10.0060.00317.48
8.1.00.0000.00817.33
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.36
8.0.270.0030.00317.24
8.0.260.0030.00316.77
8.0.250.0030.00316.95
8.0.240.0070.00416.62
8.0.230.0000.00816.84
8.0.220.0000.00716.78
8.0.210.0070.00016.86
8.0.200.0000.01116.84
8.0.190.0080.00016.84
8.0.180.0000.00716.93
8.0.170.0000.00816.91
8.0.160.0080.00016.75
8.0.150.0040.00416.84
8.0.140.0040.00416.75
8.0.130.0050.00013.35
8.0.120.0050.00216.73
8.0.110.0040.00416.89
8.0.100.0030.00316.95
8.0.90.0040.00416.83
8.0.80.0130.00716.90
8.0.70.0040.00416.81
8.0.60.0050.00216.77
8.0.50.0040.00416.94
8.0.30.0060.01217.19
8.0.20.0100.00817.40
8.0.10.0040.00416.95
8.0.00.0140.00416.64
7.4.330.0000.00515.55
7.4.320.0070.00016.60
7.4.300.0030.00316.49
7.4.290.0030.00516.59
7.4.280.0040.00416.39
7.4.270.0000.00716.60
7.4.260.0000.00513.16
7.4.250.0050.00316.54
7.4.240.0040.00416.55
7.4.230.0000.00616.70
7.4.220.0120.00616.53
7.4.210.0090.00916.46
7.4.200.0070.00016.47
7.4.160.0100.00716.49
7.4.150.0110.00817.40
7.4.140.0080.00917.86
7.4.130.0130.01316.59
7.4.120.0110.00716.47
7.4.110.0100.00716.39
7.4.100.0100.00716.47
7.4.90.0100.00716.55
7.4.80.0110.01119.39
7.4.70.0120.00616.35
7.4.60.0090.00616.49
7.4.50.0080.00516.56
7.4.40.0030.01316.45
7.4.30.0130.00916.48
7.4.00.0060.00914.97
7.3.330.0050.00013.14
7.3.320.0030.00312.96
7.3.310.0030.00316.30
7.3.300.0030.00316.28
7.3.290.0050.01316.29
7.3.280.0080.01016.28
7.3.270.0080.00817.40
7.3.260.0090.00816.39
7.3.250.0130.00616.21
7.3.240.0080.01216.44
7.3.230.0140.00316.65
7.3.210.0140.00316.25
7.3.200.0110.00416.47
7.3.190.0100.00616.51
7.3.180.0090.00616.28
7.3.170.0090.00616.51
7.3.160.0030.01316.48
7.2.330.0080.00816.69
7.2.320.0080.00916.34
7.2.310.0100.00716.50
7.2.300.0030.01216.55
7.2.290.0110.01016.57
7.2.60.0110.00317.05
7.2.50.0000.01016.98
7.1.200.0030.00315.87
7.1.70.0000.00717.00
7.1.60.0530.00732.96
7.1.50.0530.01033.06
7.1.40.0600.01032.58
7.1.30.0600.01732.60
7.1.20.0630.01032.71
7.1.10.0430.01014.53
7.1.00.0400.01014.89
7.0.200.0430.01014.85
7.0.190.0430.01014.90
7.0.180.0430.01014.56
7.0.170.0470.00714.24
7.0.160.0530.00714.24
7.0.150.0570.01014.47
7.0.140.0670.01314.46
7.0.130.0470.01014.50
7.0.120.0470.01014.32
7.0.110.0430.00714.62
7.0.100.0470.00714.32
7.0.90.0530.01314.40
7.0.80.1630.01014.33
7.0.70.0570.00714.49
7.0.60.0470.01314.10
7.0.50.0400.01014.70
7.0.40.0530.00314.68
7.0.30.0500.00714.81
7.0.20.0430.00714.56
7.0.10.0430.01714.54
7.0.00.0770.01314.72

preferences:
45.78 ms | 401 KiB | 5 Q