3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 100000; $i++) { $GLOBALS["a$i"] = rand(0, 1000000); } $start = microtime(true); for ($runs = 1000; $runs > 0; $runs--) { array_key_exists('a1111111', $GLOBALS); } $end = microtime(true); printf("[GLOBALS]array_key_exists() took %.5f seconds\n", $end - $start);

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.2.51.0880.91828.94
8.2.41.0040.78428.86
8.2.31.0920.88828.58
8.2.21.1350.88028.87
8.2.11.1300.82128.53
8.2.01.2200.77028.70
8.1.181.0880.92728.21
8.1.171.1600.82228.61
8.1.161.1380.85628.48
8.1.151.1020.91128.44
8.1.141.0730.93728.48
8.1.131.0870.91628.52
8.1.121.1600.84428.65
8.1.111.1180.88128.70
8.1.100.9620.78928.63
8.1.90.8990.80628.52
8.1.80.9460.89728.39
8.1.70.9650.88128.44
8.1.60.9260.76428.52
8.1.50.8620.82328.42
8.1.40.9040.79528.50
8.1.30.9560.82828.65
8.1.20.9770.85628.65
8.1.10.8400.80828.60
8.1.00.8730.78128.48
8.0.280.0160.01523.62
8.0.270.0190.01523.61
8.0.260.0150.01623.63
8.0.250.0100.02123.48
8.0.240.0150.02023.63
8.0.230.0140.01323.81
8.0.220.0110.01323.81
8.0.210.0160.01123.71
8.0.200.0140.01423.83
8.0.190.0130.01623.85
8.0.180.0100.01823.82
8.0.170.0080.02023.85
8.0.160.0150.01323.84
8.0.150.0140.01423.69
8.0.140.0150.01223.78
8.0.130.0140.01523.87
8.0.120.0160.01323.79
8.0.110.0110.01923.73
8.0.100.0140.01523.75
8.0.90.0150.01523.84
8.0.80.0170.01223.90
8.0.70.0190.00923.71
8.0.60.0140.01523.77
8.0.50.0140.01423.71
8.0.30.0140.01423.71
8.0.20.0080.01923.82
8.0.10.0130.01623.98
7.4.330.0150.01519.87
7.4.320.0200.01323.34
7.4.300.0030.02623.47
7.4.290.0150.01423.38
7.4.280.0150.01423.33
7.4.270.0140.01423.36
7.4.260.0090.02023.39
7.4.250.0140.01523.35
7.4.240.0090.01923.38
7.4.230.0130.01423.32
7.4.220.0110.01623.29
7.4.210.0150.01323.30
7.4.200.0150.01423.32
7.4.190.0130.01623.27
7.4.180.0140.01523.43
7.4.160.0080.02123.50
7.4.150.0130.01623.33
7.4.140.0120.01923.19
7.4.130.0140.01623.48
7.4.120.0170.01623.29
7.4.110.0170.01523.36
7.4.100.0150.01523.44
7.4.90.0160.01323.35
7.4.80.0150.01423.32
7.4.70.0140.01523.30
7.4.60.0120.01623.31
7.4.50.0100.01923.29
7.4.40.0140.01323.28
7.4.30.0120.01823.44
7.4.20.0190.00923.41
7.4.10.0060.02223.34
7.4.00.0140.01423.40

preferences:
41.07 ms | 401 KiB | 5 Q