3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=0;; while($i < 60000) { $i++; $data1[md5($i)] = true; } $time = microtime(true); echo "Starting array_key_exists\n"; array_key_exists('notexistingkey', $data); $time = microtime(true) - $time; echo "Starting isset\n"; isset($data['notexistingkey']); $time = microtime(true) - $time;

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.4.00.0130.03620.75
7.3.120.0100.04020.65
7.3.110.0200.03020.48
7.3.100.0130.02220.47
7.3.90.0100.02320.55
7.3.80.0130.02320.19
7.3.70.0040.02920.65
7.3.60.0130.03020.70
7.3.50.0100.02820.55
7.3.40.0030.03620.52
7.3.30.0030.03420.74
7.3.20.0060.03122.89
7.3.10.0110.02122.83
7.3.00.0080.02622.83
7.2.250.0030.03920.32
7.2.240.0100.03720.05
7.2.230.0030.03220.63
7.2.220.0170.02020.81
7.2.210.0070.03420.45
7.2.200.0070.02920.44
7.2.190.0130.03620.18
7.2.180.0070.03420.37
7.2.170.0130.02420.61
7.2.130.0060.02622.77
7.2.120.0190.02622.54
7.2.110.0130.03922.35
7.2.100.0070.03822.84
7.2.90.0070.02922.85
7.2.80.0070.02322.43
7.2.70.0140.03122.48
7.2.60.0210.02122.54
7.2.50.0090.02122.82
7.2.40.0030.03022.81
7.2.30.0070.03622.63
7.2.20.0110.02522.75
7.2.10.0030.03422.53
7.2.00.0070.02722.84
7.1.330.0070.03321.89
7.1.320.0030.03721.86
7.1.310.0100.04321.92
7.1.300.0100.03121.83
7.1.290.0070.03721.70
7.1.280.0060.03521.90
7.1.270.0030.03721.82
7.1.260.0130.03021.75
7.1.250.0100.03621.83
7.1.70.0030.02623.11
7.1.60.0030.05223.16
7.1.50.0100.05822.93
7.1.00.0070.09728.31
7.0.200.0030.02522.88
7.0.140.0030.10327.99
7.0.100.0200.07325.64
7.0.90.0170.06025.76
7.0.80.0400.13025.59
7.0.70.0170.08025.58
7.0.60.0200.09025.57
7.0.50.0300.07026.00
7.0.40.0100.05722.20
7.0.30.0170.10721.99
7.0.20.0130.06322.16
7.0.10.0030.12022.08
7.0.00.0170.11322.16
5.6.280.0030.11731.57
5.6.250.0070.13731.05
5.6.240.0030.09031.16
5.6.230.0200.09031.11
5.6.220.0130.13031.09
5.6.210.0100.13031.16
5.6.200.0100.09731.52
5.6.190.0030.08031.53
5.6.180.0100.10031.58
5.6.170.0270.11731.49
5.6.160.0070.09331.52
5.6.150.0130.07031.53
5.6.140.0070.07331.60
5.6.130.0200.11731.55
5.6.120.0130.08731.50
5.6.110.0030.07731.51
5.6.100.0130.12731.39
5.6.90.0170.07331.57
5.6.80.0100.11330.93
5.6.70.0130.08330.88
5.6.60.0070.08330.77
5.6.50.0200.10330.82
5.6.40.0100.06730.90
5.6.30.0130.14330.91
5.6.20.0070.08330.96
5.6.10.0100.11730.84
5.6.00.0100.09730.83
5.5.380.0100.07330.93
5.5.370.0230.08030.84
5.5.360.0100.11331.02
5.5.350.0130.10730.94
5.5.340.0130.06731.33
5.5.330.0300.05331.10
5.5.320.0030.07331.36
5.5.310.0100.07331.38
5.5.300.0100.13031.39
5.5.290.0300.09331.30
5.5.280.0000.13731.20
5.5.270.0170.08731.19
5.5.260.0030.12031.30
5.5.250.0070.12031.17
5.5.240.0070.10030.50
5.5.230.0100.07030.66
5.5.220.0130.10730.64
5.5.210.0200.08330.61
5.5.200.0100.12030.63
5.5.190.0030.09730.64
5.5.180.0130.11030.70
5.5.160.0100.06730.61
5.5.150.0070.09730.69
5.5.140.0130.11330.68
5.5.130.0130.07730.65
5.5.120.0000.08030.74
5.5.110.0130.10330.73
5.5.100.0070.12330.57
5.5.90.0070.07030.45
5.5.80.0130.12330.53
5.5.70.0270.12730.40
5.5.60.0130.08730.53
5.5.50.0170.10330.58
5.5.40.0130.09730.52
5.5.30.0100.11030.46
5.5.20.0230.11030.52
5.5.10.0100.06730.60
5.5.00.0070.08030.54
5.4.450.0130.07329.86
5.4.440.0200.10729.72
5.4.430.0130.10729.60
5.4.420.0400.03729.63
5.4.410.0100.12029.50
5.4.400.0000.12029.53
5.4.390.0100.08329.45
5.4.380.0030.07029.41
5.4.370.0030.12729.36
5.4.360.0070.08729.50
5.4.350.0230.06029.31
5.4.340.0070.08729.38
5.4.320.0030.12329.45
5.4.310.0100.11729.46
5.4.300.0030.12729.37
5.4.290.0070.12329.30
5.4.280.0070.10729.46
5.4.270.0100.10029.55
5.4.260.0200.10029.32
5.4.250.0070.10729.30
5.4.240.0130.11729.45
5.4.230.0100.06029.46
5.4.220.0100.13329.41
5.4.210.0100.12029.45
5.4.200.0100.11729.45
5.4.190.0100.06729.22
5.4.180.0230.11329.45
5.4.170.0030.12729.55
5.4.160.0070.07329.44
5.4.150.0030.07029.18
5.4.140.0100.07326.60
5.4.130.0030.07026.54
5.4.120.0000.08026.89
5.4.110.0070.10726.81
5.4.100.0200.09326.81
5.4.90.0100.06326.70
5.4.80.0130.09026.71
5.4.70.0300.04726.88
5.4.60.0030.06726.57
5.4.50.0200.11026.67
5.4.40.0200.09026.87
5.4.30.0100.11026.59
5.4.20.0100.06326.72
5.4.10.0170.09026.87
5.4.00.0070.11025.95
5.3.290.0300.05324.38
5.3.280.0130.13024.16
5.3.270.0030.11724.23
5.3.260.0100.07024.25
5.3.250.0100.07324.17
5.3.240.0070.12324.29
5.3.230.0030.12724.16
5.3.220.0070.11024.20
5.3.210.0030.09324.21
5.3.200.0130.11724.14
5.3.190.0200.11324.13
5.3.180.0070.07324.39
5.3.170.0130.06024.07
5.3.160.0130.11324.24
5.3.150.0170.12024.26
5.3.140.0170.11024.29
5.3.130.0070.12324.28
5.3.120.0130.07724.11
5.3.110.0170.12324.09
5.3.100.0000.07723.71
5.3.90.0200.10723.66
5.3.80.0130.09723.66
5.3.70.0070.08323.52
5.3.60.0130.11023.60
5.3.50.0130.06323.44
5.3.40.0070.12023.75
5.3.30.0130.10723.43
5.3.20.0100.10323.34
5.3.10.0000.10323.21
5.3.00.0100.06723.29
5.2.170.0000.11320.52
5.2.160.0030.07320.38
5.2.150.0170.07720.55
5.2.140.0030.11720.53
5.2.130.0030.10020.46
5.2.120.0070.12320.54
5.2.110.0070.06720.43
5.2.100.0100.11720.39
5.2.90.0030.06320.38
5.2.80.0030.12020.38
5.2.70.0070.12320.49
5.2.60.0070.11020.23
5.2.50.0170.11320.18
5.2.40.0000.09320.19
5.2.30.0070.09320.13
5.2.20.0030.18320.23
5.2.10.0130.19020.23
5.2.00.0100.19720.04
5.1.60.0030.14722.04
5.1.50.0070.16722.03
5.1.40.0070.15722.00
5.1.30.0070.15722.33
5.1.20.0100.16022.37
5.1.10.0100.21322.02
5.1.00.0300.13022.07
5.0.50.0100.22320.54
5.0.40.0000.21020.43
5.0.30.0000.23720.26
5.0.20.0130.19720.23
5.0.10.0070.16020.07
5.0.00.0370.15719.98
4.4.90.0000.19718.00
4.4.80.0170.19017.94
4.4.70.0070.18017.89
4.4.60.0070.14017.93
4.4.50.0070.22017.95
4.4.40.0100.20718.00
4.4.30.0100.13717.87
4.4.20.0000.14718.06
4.4.10.0070.14018.05
4.4.00.0030.21717.92
4.3.110.0030.20317.84
4.3.100.0000.14717.89
4.3.90.0030.14317.89
4.3.80.0100.14317.80
4.3.70.0070.14317.89
4.3.60.0000.14717.88
4.3.50.0000.15317.83
4.3.40.0130.14317.77
4.3.30.0000.15016.67
4.3.20.0030.14016.52
4.3.10.0000.15016.59
4.3.00.0030.14016.54

preferences:
29.52 ms | 400 KiB | 5 Q