3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=0;; while($i < 60000) { $i++; $data[md5($i)] = true; } $stime = microtime(true); array_key_exists('notexistingkey', $data); $time = microtime(true) - $stime; echo "Starting array_key_exists => $time\n"; $stime = microtime(true); isset($data['notexistingkey']); $time = microtime(true) - $stime; 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.0030.03025.04
7.1.70.0240.02422.96
7.1.60.0070.05723.19
7.1.50.0140.04622.54
7.1.00.0000.10728.36
7.0.200.0070.03022.66
7.0.140.0070.10328.07
7.0.100.0070.09025.58
7.0.90.0200.11725.53
7.0.80.0870.07725.58
7.0.70.0370.12025.58
7.0.60.0070.09025.55
7.0.50.0830.09726.02
7.0.40.0170.10722.20
7.0.30.0270.11322.14
7.0.20.0100.12322.01
7.0.10.0170.09322.00
7.0.00.0230.09322.08
5.6.280.0100.11731.40
5.6.250.0130.10031.12
5.6.240.0070.07730.98
5.6.230.0200.10731.12
5.6.220.0000.11331.11
5.6.210.0100.12331.01
5.6.200.0230.12031.43
5.6.190.0070.12331.56
5.6.180.0100.12731.53
5.6.170.0200.12031.55
5.6.160.0070.12331.39
5.6.150.0100.09031.55
5.6.140.0070.14031.59
5.6.130.0230.12731.44
5.6.120.0270.12031.50
5.6.110.0130.15031.52
5.6.100.0000.09731.43
5.6.90.0100.12031.54
5.6.80.0130.13730.95
5.6.70.0200.07730.86
5.6.60.0170.11030.96
5.6.50.0070.11030.96
5.6.40.0070.12330.86
5.6.30.0100.13330.89
5.6.20.0070.09730.85
5.6.10.0100.12030.88
5.6.00.0270.10730.93
5.5.380.0200.11730.86
5.5.370.0100.12030.88
5.5.360.0230.09730.89
5.5.350.0130.12030.85
5.5.340.0000.16031.38
5.5.330.0170.12331.41
5.5.320.0070.13331.29
5.5.310.0300.09331.38
5.5.300.0100.11331.36
5.5.290.0030.13331.26
5.5.280.0070.13731.34
5.5.270.0100.12031.39
5.5.260.0200.12731.24
5.5.250.0000.13731.08
5.5.240.0100.13030.65
5.5.230.0000.09330.72
5.5.220.0030.12730.66
5.5.210.0100.06730.78
5.5.200.0130.07730.75
5.5.190.0070.12030.64
5.5.180.0070.12730.75
5.5.160.0130.11030.77
5.5.150.0100.08030.63
5.5.140.0130.11330.72
5.5.130.0100.10730.70
5.5.120.0070.08030.66
5.5.110.0200.06030.73
5.5.100.0070.09730.64
5.5.90.0100.11030.59
5.5.80.0170.09730.64
5.5.70.0130.12030.64
5.5.60.0130.12730.45
5.5.50.0170.08030.54
5.5.40.0030.11730.48
5.5.30.0130.13030.53
5.5.20.0070.12730.48
5.5.10.0100.08330.56
5.5.00.0230.10330.61
5.4.450.0170.11329.67
5.4.440.0130.11329.63
5.4.430.0230.10029.85
5.4.420.0030.12029.76
5.4.410.0070.07729.56
5.4.400.0130.11029.42
5.4.390.0200.11329.24
5.4.380.0000.07729.27
5.4.370.0030.12329.34
5.4.360.0100.10329.46
5.4.350.0130.11729.40
5.4.340.0130.12029.39
5.4.320.0270.09729.41
5.4.310.0230.11729.46
5.4.300.0100.11329.45
5.4.290.0100.10729.56
5.4.280.0170.10329.43
5.4.270.0170.07029.46
5.4.260.0200.11029.23
5.4.250.0100.10729.45
5.4.240.0070.11029.36
5.4.230.0070.11729.37
5.4.220.0230.11029.34
5.4.210.0030.10329.57
5.4.200.0130.10329.56
5.4.190.0000.12729.36
5.4.180.0070.09029.35
5.4.170.0130.11729.36
5.4.160.0130.07029.36
5.4.150.0130.09029.48
5.4.140.0100.12026.66
5.4.130.0130.06726.70
5.4.120.0100.09326.71
5.4.110.0030.09026.91
5.4.100.0130.10026.79
5.4.90.0130.07726.90
5.4.80.0130.10726.69
5.4.70.0200.09026.88
5.4.60.0200.10326.64
5.4.50.0030.11026.66
5.4.40.0100.11726.71
5.4.30.0130.07326.66
5.4.20.0030.09026.75
5.4.10.0170.11726.71
5.4.00.0000.14026.15
5.3.290.0100.13724.39
5.3.280.0170.11724.26
5.3.270.0300.06024.18
5.3.260.0070.14024.45
5.3.250.0170.11324.13
5.3.240.0100.12024.13
5.3.230.0030.08324.32
5.3.220.0170.10724.20
5.3.210.0100.11724.20
5.3.200.0100.12024.09
5.3.190.0170.11024.29
5.3.180.0170.12024.28
5.3.170.0030.13324.25
5.3.160.0100.11724.14
5.3.150.0130.12024.11
5.3.140.0230.10324.04
5.3.130.0100.13024.26
5.3.120.0030.10324.17
5.3.110.0070.11324.18
5.3.100.0070.12723.61
5.3.90.0230.11023.73
5.3.80.0170.13323.68
5.3.70.0070.12323.58
5.3.60.0130.12723.52
5.3.50.0030.11723.47
5.3.40.0130.10723.51
5.3.30.0130.12023.53
5.3.20.0100.14323.36
5.3.10.0030.11023.16
5.3.00.0130.12023.30
5.2.170.0170.09720.48
5.2.160.0070.11320.45
5.2.150.0200.11720.37
5.2.140.0170.10720.37
5.2.130.0000.09720.50
5.2.120.0100.10020.50
5.2.110.0070.08720.43
5.2.100.0070.08320.42
5.2.90.0200.10720.39
5.2.80.0100.11020.41
5.2.70.0070.08720.48
5.2.60.0000.09320.23
5.2.50.0030.08720.16
5.2.40.0070.11720.21
5.2.30.0130.11320.00
5.2.20.0070.15320.26
5.2.10.0030.14320.23
5.2.00.0030.19720.03
5.1.60.0130.20021.95
5.1.50.0030.19021.94
5.1.40.0070.15721.95
5.1.30.0170.17722.38
5.1.20.0100.19022.23
5.1.10.0070.19722.12
5.1.00.0070.19322.02
5.0.50.0070.18320.36
5.0.40.0030.18720.24
5.0.30.0170.20720.13
5.0.20.0000.16320.10
5.0.10.0170.16720.23
5.0.00.0130.15020.21
4.4.90.0130.16717.97
4.4.80.0130.19017.89
4.4.70.0030.23317.92
4.4.60.0030.18317.87
4.4.50.0030.16317.91
4.4.40.0130.16017.87
4.4.30.0070.19017.84
4.4.20.0130.22317.89
4.4.10.0100.19318.05
4.4.00.0130.21317.91
4.3.110.0130.16317.80
4.3.100.0030.15717.90
4.3.90.0100.18717.90
4.3.80.0070.19717.89
4.3.70.0130.12717.83
4.3.60.0000.18317.89
4.3.50.0100.14317.89
4.3.40.0070.20717.85
4.3.30.0130.16316.63
4.3.20.0070.13316.57
4.3.10.0130.17716.60
4.3.00.0070.20716.54

preferences:
31.13 ms | 400 KiB | 5 Q