3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=0; $max = 600000; while($i < $max) { $i++; $data[md5($i)] = true; } $stime = microtime(true); $i=0; while($i < $max) { array_key_exists('notexistingkey', $data); } $time = microtime(true) - $stime; echo "Starting array_key_exists => $time\n"; $stime = microtime(true); $i=0; while($i < $max) { 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)
5.5.50.0720.37075.32
5.5.40.0560.39775.75
5.5.30.0590.42475.27
5.5.20.0830.32075.35
5.5.10.0390.43075.41
5.5.00.0550.39575.25
5.4.210.0560.37975.32
5.4.200.0330.37875.30
5.4.190.0420.37975.46
5.4.180.0720.36875.45
5.4.170.0500.42475.33
5.4.160.0610.39375.11
5.4.150.1000.36575.38
5.4.140.0560.34075.40
5.4.130.0700.38775.23
5.4.120.0660.33475.45
5.4.110.0660.37275.40
5.4.100.0500.37575.50
5.4.90.0560.34275.45
5.4.80.0680.34375.48
5.4.70.0760.46175.56
5.4.60.0790.36275.41
5.4.50.0910.41675.15
5.4.40.0770.37675.25
5.4.30.0520.37275.36
5.4.20.0630.41075.28
5.4.10.0630.37475.39
5.4.00.0760.40275.55
5.3.270.0860.41073.54
5.3.260.0760.49473.64
5.3.250.0360.48073.39
5.3.240.0660.39673.49
5.3.230.0490.47573.46
5.3.220.0650.38473.34
5.3.210.0670.43173.37
5.3.200.0630.41973.39
5.3.190.0600.38373.47
5.3.180.0630.38573.67
5.3.170.0530.40073.63
5.3.160.0800.51073.60
5.3.150.0730.49173.63
5.3.140.0620.40073.51
5.3.130.0600.39673.33
5.3.120.0480.47973.48
5.3.110.0730.45573.53
5.3.100.0690.35573.41
5.3.90.0650.34773.55
5.3.80.0620.40973.35
5.3.70.0460.39573.25
5.3.60.0750.42673.26
5.3.50.0650.39173.32
5.3.40.0770.35973.35
5.3.30.0560.38473.42
5.3.20.0470.37873.29
5.3.10.0570.36773.15
5.3.00.0500.35873.10
5.2.170.0580.41372.94
5.2.160.0490.49972.93
5.2.150.0560.43673.03
5.2.140.0390.46072.85
5.2.130.0430.49972.87
5.2.120.0420.45072.84
5.2.110.0620.41272.92
5.2.100.0660.42072.95
5.2.90.0710.58972.89
5.2.80.0660.46472.80
5.2.70.0860.46272.84
5.2.60.0810.40972.72
5.2.50.0610.55672.87
5.2.40.0760.53972.74
5.2.30.0550.49172.96
5.2.20.1011.47972.91
5.2.10.0691.20272.89
5.2.00.1022.342108.39
5.1.60.1212.332135.32
5.1.50.1222.327135.35
5.1.40.1892.171134.66
5.1.30.1142.284135.61
5.1.20.1192.325135.50
5.1.10.1542.293135.20
5.1.00.1322.341135.04
5.0.50.1162.328134.35
5.0.40.1442.299134.33
5.0.30.1012.350133.91
5.0.20.1092.373134.24
5.0.10.1092.340111.65
5.0.00.1552.282134.12
4.4.90.1092.337131.96
4.4.80.1282.301132.16
4.4.70.1722.306132.18
4.4.60.1742.191117.94
4.4.50.1122.302132.08
4.4.40.1522.306132.24
4.4.30.1662.299112.52
4.4.20.1762.257129.12
4.4.10.1392.327131.99
4.4.00.1322.332132.05
4.3.110.1122.312131.98
4.3.100.1452.311131.96
4.3.90.1292.346126.83
4.3.80.1602.100131.85
4.3.70.1592.261131.99
4.3.60.1122.320131.92
4.3.50.1432.312131.83
4.3.40.1422.314131.97
4.3.30.1362.273120.75
4.3.20.1412.285124.90
4.3.10.0972.333131.48
4.3.00.1382.327131.47

preferences:
34.99 ms | 400 KiB | 5 Q