3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; $t1 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { \array_key_exists("key", $array); } $t2 = hrtime(true); $t3 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { isset($array["key"]); } $t4 = hrtime(true); echo "With function: " . (($t2 - $t1) / 1000000) . " ms\n"; echo "With isset : " . (($t4 - $t3) / 1000000) . " ms\n";

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.130.0070.09118.52
8.3.120.0070.10520.71
8.3.110.0030.09120.94
8.3.100.0130.11524.06
8.3.90.0160.09926.77
8.3.80.0030.13818.43
8.3.70.0070.16716.63
8.3.60.0160.17518.55
8.3.50.0080.15316.53
8.3.40.0100.17418.71
8.3.30.0130.15818.85
8.3.20.0000.09722.33
8.3.10.0070.09220.34
8.3.00.0070.08722.45
8.2.250.0100.09816.57
8.2.240.0100.10918.67
8.2.230.0030.09622.58
8.2.220.0030.09037.54
8.2.210.0070.11626.77
8.2.200.0070.11816.63
8.2.190.0170.18518.35
8.2.180.0100.17118.29
8.2.170.0130.16022.96
8.2.160.0030.17221.18
8.2.150.0070.09524.18
8.2.140.0030.09724.66
8.2.130.0100.08926.16
8.2.120.0030.09326.16
8.2.110.0030.12019.33
8.2.100.0030.10818.03
8.2.90.0000.11018.03
8.2.80.0100.10117.97
8.2.70.0030.10617.93
8.2.60.0030.13418.19
8.2.50.0070.10218.10
8.2.40.0000.11721.32
8.2.30.0030.11619.29
8.2.20.0000.12618.02
8.2.10.0000.11519.49
8.2.00.0070.11119.38
8.1.300.0030.10517.89
8.1.290.0100.11018.88
8.1.280.0100.18125.92
8.1.270.0160.11922.59
8.1.260.0100.08426.35
8.1.250.0030.09828.09
8.1.240.0070.11519.11
8.1.230.0070.10822.75
8.1.220.0030.13217.74
8.1.210.0030.13218.91
8.1.200.0100.11017.23
8.1.190.0000.12817.23
8.1.180.0030.11018.10
8.1.170.0070.10418.44
8.1.160.0030.10418.96
8.1.150.0000.12718.96
8.1.140.0030.10822.69
8.1.130.0000.11220.11
8.1.120.0070.10617.37
8.1.110.0000.12317.36
8.1.100.0000.13817.36
8.1.90.0070.13217.49
8.1.80.0030.11117.53
8.1.70.0070.11317.45
8.1.60.0030.14717.61
8.1.50.0030.14817.46
8.1.40.0070.14517.43
8.1.30.0070.14117.53
8.1.20.0070.17117.58
8.1.10.0030.14817.60
8.1.00.0030.14817.39
8.0.300.0000.12421.78
8.0.290.0000.12016.58
8.0.280.0030.11718.38
8.0.270.0030.11617.28
8.0.260.0000.11520.01
8.0.250.0070.11117.03
8.0.240.0030.11216.87
8.0.230.0070.11817.00
8.0.220.0030.12516.91
8.0.210.0000.12716.78
8.0.200.0070.12116.84
8.0.190.0000.14716.91
8.0.180.0000.14716.92
8.0.170.0030.15016.99
8.0.160.0030.14316.93
8.0.150.0000.14616.89
8.0.140.0030.14416.86
8.0.130.0070.18213.41
8.0.120.0030.15116.85
8.0.110.0030.14516.87
8.0.100.0000.15016.85
8.0.90.0070.14516.98
8.0.80.0070.28416.93
8.0.70.0100.13816.80
8.0.60.0000.14716.96
8.0.50.0070.13916.63
8.0.30.0070.18617.11
8.0.20.0130.21716.95
8.0.10.0030.15016.94
8.0.00.0130.22016.83
7.4.330.0030.16715.55
7.4.320.0000.15816.61
7.4.300.0130.16016.50
7.4.290.0030.18816.57
7.4.280.0000.19116.54
7.4.270.0030.18216.60
7.4.260.0070.18816.61
7.4.250.0030.18816.39
7.4.240.0070.18216.47
7.4.230.0030.18216.61
7.4.220.0030.18316.68
7.4.210.0100.26316.60
7.4.200.0030.18216.65
7.4.130.0130.31316.50
7.4.120.0100.27116.60
7.4.110.0190.34916.50
7.4.100.0160.27416.58
7.4.90.0160.37516.55
7.4.80.0130.26819.39
7.4.70.0070.26216.47
7.4.60.0160.35916.53
7.4.50.0070.28516.37
7.4.40.0100.28016.57
7.4.00.0130.34814.93
7.3.330.0000.24016.22
7.3.320.0030.25413.23
7.3.310.0000.24616.29
7.3.300.0030.24216.25
7.3.290.0070.23616.25
7.3.280.0370.35416.27
7.3.260.0090.35816.41
7.3.240.0060.40116.50
7.3.230.0070.45016.54
7.3.210.0070.35616.31
7.3.200.0100.36016.28
7.3.190.0060.35916.55
7.3.180.0070.35316.48
7.3.170.0030.41916.59
7.3.160.0070.34416.43
7.3.120.0030.36514.53
7.3.110.0070.33114.85
7.3.100.0100.38314.81
7.3.90.0100.36014.76
7.3.80.0130.36514.91
7.3.70.0090.33714.67
7.3.60.0150.35814.65
7.3.50.0160.35414.67
7.3.40.0200.33614.78
7.3.30.0100.35014.74
7.3.20.0070.34415.28
7.3.10.0100.34815.40
7.3.00.0130.31915.47
7.2.330.0090.00916.44
7.2.320.0080.00816.49
7.2.310.0090.00616.62
7.2.300.0040.01416.58
7.2.290.0040.01116.52
7.2.250.0080.01114.98
7.2.240.0070.01414.59
7.2.230.0030.00714.54
7.2.220.0070.00714.78
7.2.210.0090.00614.81
7.2.200.0060.00914.90
7.2.190.0050.00814.77
7.2.180.0090.00514.81
7.2.170.0070.00914.95
7.2.160.0040.01314.89
7.2.150.0120.00614.99
7.2.140.0090.00914.82
7.2.130.0110.00815.00
7.2.120.0120.00714.83
7.2.110.0140.00514.96
7.2.100.0090.01115.00
7.2.90.0330.00914.93
7.2.80.0100.00914.94
7.2.70.0220.00815.02
7.2.60.0090.01315.02
7.2.50.0080.01215.06
7.2.40.0080.01314.83
7.2.30.0090.01014.79
7.2.20.0050.01215.03
7.2.10.0100.00715.02
7.2.00.0090.01114.99
7.1.330.0000.01115.77
7.1.320.0070.00714.48
7.1.310.0060.01014.32
7.1.300.0060.00914.40
7.1.290.0070.00714.29
7.1.280.0050.01014.29
7.1.270.0130.00414.33
7.1.260.0090.00614.36
7.1.250.0130.00513.72

preferences:
30.76 ms | 403 KiB | 5 Q