3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=0;; while($i < 60000) { $i++; $data[md5($i)] = true; } $time = microtime(true); array_key_exists('notexistingkey', $data); $time = microtime(true) - $time; echo "Starting array_key_exists => $time\n"; isset($data['notexistingkey']); $time = microtime(true) - $time; echo "Starting isset => $time\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)
7.2.00.0100.02725.10
7.1.70.0040.02922.95
7.1.60.0000.03723.09
7.1.50.0040.03222.92
7.1.40.0000.03622.52
7.1.30.0070.02822.75
7.1.20.0100.03622.76
7.1.10.0030.03322.57
7.1.00.0230.03322.57
7.0.200.0070.02722.91
7.0.190.0030.03622.71
7.0.180.0000.03322.45
7.0.170.0030.03422.45
7.0.160.0000.02922.16
7.0.150.0030.03622.19
7.0.140.0470.03422.45
7.0.130.0270.02322.41
7.0.120.0300.02722.67
7.0.110.0480.02622.34
7.0.100.0260.03322.48
7.0.90.0300.03022.45
7.0.80.0360.02422.49
7.0.70.0280.03122.21
7.0.60.0230.03722.08
7.0.50.0190.02522.19
7.0.40.0160.01617.54
7.0.30.0070.02617.54
7.0.20.0070.02317.54
7.0.10.0090.02417.54
7.0.00.0100.02417.54
5.6.300.0230.08931.16
5.6.290.0130.07931.29
5.6.280.0070.09331.34
5.6.270.0130.07531.36
5.6.260.0100.08631.51
5.6.250.0000.08631.47
5.6.240.0030.09231.36
5.6.230.0100.08431.30
5.6.220.0210.06331.26
5.6.210.0160.08231.44
5.6.200.0200.06831.31
5.6.190.0160.07531.46
5.6.180.0150.06531.50
5.6.170.0100.07231.50
5.6.160.0250.07131.34
5.6.150.0100.08231.30
5.6.140.0140.06831.27
5.6.130.0070.10631.27
5.6.120.0030.08731.34
5.6.110.0170.07331.28
5.6.100.0240.06331.45
5.6.90.0100.07731.45
5.6.80.0260.07130.84
5.6.70.0100.07730.78
5.6.60.0030.12230.70
5.6.50.0030.10330.89
5.6.40.0070.07130.83
5.6.30.0140.06530.67
5.6.20.0100.07630.75
5.6.10.0070.07630.68
5.6.00.0030.08330.74
5.5.380.0060.07127.99
5.5.370.0100.08828.00
5.5.360.0070.08627.80
5.5.350.0070.07728.03
5.5.340.0100.08128.47
5.5.330.0130.06828.36
5.5.320.0030.07128.47
5.5.310.0030.13928.39
5.5.300.0030.09828.30
5.5.290.0130.08128.45
5.5.280.0100.08928.39
5.5.270.0130.06628.46
5.5.260.0140.08228.51
5.5.250.0030.08127.95
5.5.240.0030.09927.81
5.5.230.0070.07027.54
5.5.220.0100.07327.84
5.5.210.0070.07027.86
5.5.200.0100.06427.84
5.5.190.0100.07127.81
5.5.180.0030.07327.48
5.5.160.0100.07227.83
5.5.150.0100.10227.73
5.5.140.0100.06527.86
5.5.130.0100.07627.74
5.5.120.0070.07327.83
5.5.110.0100.07127.80
5.5.100.0070.08527.52
5.5.90.0130.07027.71
5.5.80.0030.07527.64
5.5.70.0070.07527.76
5.5.60.0030.09227.70
5.5.50.0030.07427.54
5.5.40.0030.08327.72
5.5.30.0060.07827.54
5.5.20.0100.07127.70
5.5.10.0200.08527.72
5.5.00.0100.07227.71
5.4.450.0190.06629.74
5.4.440.0030.07529.78
5.4.430.0030.07729.75
5.4.420.0100.06729.68
5.4.410.0130.07529.40
5.4.400.0070.06929.33
5.4.390.0070.06829.55
5.4.380.0100.07529.32
5.4.370.0100.08029.44
5.4.360.0070.06929.58
5.4.350.0030.09029.17
5.4.340.0140.06229.41
5.4.320.0100.07529.61
5.4.310.0070.07029.55
5.4.300.0060.07129.45
5.4.290.0100.07729.43
5.4.280.0030.08729.46
5.4.270.0100.06929.47
5.4.260.0070.08729.58
5.4.250.0070.08429.48
5.4.240.0100.07029.42
5.4.230.0100.06629.42
5.4.220.0090.06529.57
5.4.210.0070.07929.39
5.4.200.0000.09129.35
5.4.190.0070.07629.54
5.4.180.0070.07829.32
5.4.170.0100.07229.44
5.4.160.0030.07429.50
5.4.150.0070.09929.31
5.4.140.0130.06927.00
5.4.130.0030.07827.01
5.4.120.0030.08527.04
5.4.110.0030.07426.95
5.4.100.0000.07526.95
5.4.90.0030.11827.12
5.4.80.0030.07627.04
5.4.70.0030.07026.97
5.4.60.0130.07426.93
5.4.50.0100.06626.93
5.4.40.0070.06826.98
5.4.30.0030.08126.80
5.4.20.0070.07426.79
5.4.10.0000.08027.04
5.4.00.0030.07926.46
5.3.290.0030.09024.18
5.3.280.0070.07624.45
5.3.270.0070.07424.32
5.3.260.0100.08324.48
5.3.250.0130.13524.46
5.3.240.0070.08024.40
5.3.230.0100.08124.42
5.3.220.0100.07424.41
5.3.210.0130.06724.28
5.3.200.0100.07224.48
5.3.190.0030.07724.08
5.3.180.0070.07024.42
5.3.170.0130.11124.08
5.3.160.0070.07724.46
5.3.150.0070.07624.28
5.3.140.0070.06824.41
5.3.130.0100.08424.06
5.3.120.0030.09024.32
5.3.110.0100.08424.42
5.3.100.0070.08223.89
5.3.90.0030.07823.73
5.3.80.0030.08023.46
5.3.70.0100.06823.88
5.3.60.0030.08023.86
5.3.50.0070.06623.40
5.3.40.0030.07623.70
5.3.30.0060.07823.77
5.3.20.0000.08823.14
5.3.10.0030.06623.39
5.3.00.0000.07523.27
5.2.170.0030.07220.70
5.2.160.0030.06420.76
5.2.150.0030.07020.77
5.2.140.0070.07820.46
5.2.130.0030.07920.59
5.2.120.0070.07820.60
5.2.110.0030.08720.43
5.2.100.0030.07520.62
5.2.90.0030.08920.64
5.2.80.0030.06820.61
5.2.70.0030.06720.61
5.2.60.0030.07620.65
5.2.50.0000.12620.36
5.2.40.0030.07020.35
5.2.30.0100.07420.15
5.2.20.0070.14120.39
5.2.10.0030.16020.42
5.2.00.0030.17520.04
5.1.60.0000.14322.01
5.1.50.0000.20422.24
5.1.40.0130.12622.15
5.1.30.0030.15122.60
5.1.20.0000.14422.18
5.1.10.0000.16322.12
5.1.00.0100.21922.29
5.0.50.0000.16720.53
5.0.40.0100.13720.68
5.0.30.0070.15820.49
5.0.20.0100.22420.25
5.0.10.0030.14820.21
5.0.00.0030.17520.43
4.4.90.0030.20618.04
4.4.80.0100.15217.96
4.4.70.0000.16817.99
4.4.60.0100.15917.98
4.4.50.0000.16818.03
4.4.40.0100.16218.02
4.4.30.0070.14018.06
4.4.20.0130.14918.02
4.4.10.0100.14618.06
4.4.00.0070.14818.05
4.3.110.0100.13017.95
4.3.100.0030.14617.88
4.3.90.0100.15717.96
4.3.80.0030.15317.96
4.3.70.0030.14817.95
4.3.60.0000.18917.96
4.3.50.0000.14617.94
4.3.40.0000.17418.05
4.3.30.0000.18417.54
4.3.20.0030.15717.54
4.3.10.0070.17617.54
4.3.00.0030.14417.54

preferences:
25.75 ms | 400 KiB | 5 Q