3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 1000000; // First a test with a empty array $array = array(); $time_start = microtime(true); $i = 0; while($i < $n) { $devnull = isset($array[++$i]); } $time_end = microtime(true); $time_while1= $time_end-$time_start; echo number_format($time_while1, 3, '.', '') ." seconds - isset(array[i]) on empty array \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.0000.03619.68
7.1.70.0100.02617.25
7.1.60.0030.05519.70
7.1.50.0100.04316.97
7.1.00.0000.10722.37
7.0.200.0030.02316.72
7.0.140.0030.06722.18
7.0.60.0070.10319.93
7.0.50.0070.05717.80
7.0.40.0100.10720.24
7.0.30.0200.06320.20
7.0.20.0300.09720.17
7.0.10.0100.05720.30
7.0.00.0130.09720.34
5.6.280.0130.10720.92
5.6.210.0100.12720.69
5.6.200.0070.08718.21
5.6.190.0070.09720.61
5.6.180.0370.10720.67
5.6.170.0170.10020.47
5.6.160.0070.13020.55
5.6.150.0030.12318.22
5.6.140.0030.11318.12
5.6.130.0030.10018.13
5.6.120.0030.13021.12
5.6.110.0100.10721.09
5.6.100.0170.09021.11
5.6.90.0130.09321.01
5.6.80.0030.11720.43
5.5.350.0030.12020.43
5.5.340.0100.11318.03
5.5.330.0070.12320.43
5.5.320.0170.06720.51
5.5.310.0300.07720.35
5.5.300.0000.09717.91
5.5.290.0100.12017.97
5.5.280.0100.10320.89
5.5.270.0000.08020.97
5.5.260.0100.09020.72
5.5.250.0100.12020.46
5.5.240.0170.11020.26
5.4.450.0300.08743.92
5.4.440.0400.09343.90
5.4.430.0400.08343.87
5.4.420.0200.09043.83
5.4.410.0200.08743.79
5.4.400.0270.07043.77
5.4.390.0200.08343.77
5.4.380.0270.11018.63
5.4.370.0270.12018.68
5.4.360.0170.12318.79
5.4.350.0230.09718.74
5.4.340.0170.12718.69
5.4.320.0080.07012.46
5.4.310.0050.07512.46
5.4.300.0090.06712.46
5.4.290.0080.07812.46
5.4.280.0060.06712.35
5.4.270.0090.08512.35
5.4.260.0060.07812.36
5.4.250.0050.07312.36
5.4.240.0050.07212.36
5.4.230.0070.07912.34
5.4.220.0040.06912.34
5.4.210.0070.07312.35
5.4.200.0030.07312.34
5.4.190.0100.07812.34
5.4.180.0060.08912.34
5.4.170.0110.09912.35
5.4.160.0110.06912.35
5.4.150.0050.07112.35
5.4.140.0120.09512.03
5.4.130.0060.07212.02
5.4.120.0030.07211.98
5.4.110.0050.07911.97
5.4.100.0110.09511.97
5.4.90.0070.06911.96
5.4.80.0070.06811.97
5.4.70.0040.07411.96
5.4.60.0060.07611.96
5.4.50.0060.07511.96
5.4.40.0030.06811.95
5.4.30.0090.07411.95
5.4.20.0090.07311.95
5.4.10.0040.07511.95
5.4.00.0100.06711.44
5.3.290.0080.08312.80
5.3.280.0060.08212.71
5.3.270.0060.08312.72
5.3.260.0030.08912.72
5.3.250.0100.08312.72
5.3.240.0060.08712.72
5.3.230.0070.09412.71
5.3.220.0110.08312.68
5.3.210.0060.08112.68
5.3.200.0060.07912.68
5.3.190.0080.08712.68
5.3.180.0080.08412.67
5.3.170.0070.08212.67
5.3.160.0100.08512.67
5.3.150.0100.07712.67
5.3.140.0100.07612.66
5.3.130.0050.09812.66
5.3.120.0090.10712.66
5.3.110.0050.11312.65
5.3.100.0070.08312.12
5.3.90.0070.09212.08
5.3.80.0070.07812.07
5.3.70.0050.08812.07
5.3.60.0060.08212.07
5.3.50.0070.08012.00
5.3.40.0050.08212.00
5.3.30.0080.07711.95
5.3.20.0040.09511.73
5.3.10.0060.07711.69
5.3.00.0080.08011.68
5.2.170.0050.0939.21
5.2.160.0060.0979.22
5.2.150.0030.1009.21
5.2.140.0050.1019.22
5.2.130.0050.1009.18
5.2.120.0150.1019.18
5.2.110.0070.0929.19
5.2.100.0040.1009.18
5.2.90.0070.1009.18
5.2.80.0100.1049.18
5.2.70.0070.1079.18
5.2.60.0050.0919.13
5.2.50.0050.0939.10
5.2.40.0070.1049.08
5.2.30.0090.1019.05
5.2.20.0030.0979.04
5.2.10.0030.1098.96
5.2.00.0020.1028.82
5.1.60.0070.1118.10
5.1.50.0050.0978.10
5.1.40.0060.0938.09
5.1.30.0040.1168.43
5.1.20.0080.0948.46
5.1.10.0030.0948.18
5.1.00.0050.0938.18
5.0.50.0050.2656.66
5.0.40.0030.2826.52
5.0.30.0050.2676.33
5.0.20.0090.2756.30
5.0.10.0060.2906.28
5.0.00.0060.2976.27
4.4.90.0030.2784.78
4.4.80.0050.2754.75
4.4.70.0070.2704.75
4.4.60.0050.2634.75
4.4.50.0010.2984.77
4.4.40.0030.2994.70
4.4.30.0070.3024.76
4.4.20.0010.2784.84
4.4.10.0050.2914.85
4.4.00.0040.2914.76
4.3.110.0040.2994.66
4.3.100.0060.2684.66
4.3.90.0020.2884.64
4.3.80.0010.2824.62
4.3.70.0050.2744.63
4.3.60.0030.2814.63
4.3.50.0020.2744.62
4.3.40.0020.2944.54
4.3.30.0030.3003.34
4.3.20.0030.2683.31
4.3.10.0010.2783.27
4.3.00.0030.27343.77

preferences:
34.67 ms | 400 KiB | 5 Q