3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 1000000; // Create test array $i = 0; $array = array(); while($i < $n) { $array[$i++] = true; } $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 full 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.1.70.0500.04450.71
7.1.60.0200.08551.31
7.1.50.0130.06350.73
7.1.00.0130.13056.22
7.0.200.6290.05748.63
7.0.140.0070.09356.04
7.0.60.0230.10052.89
7.0.50.0400.10750.77
7.0.40.0200.11051.77
7.0.30.1570.11051.82
7.0.20.0630.09351.82
7.0.10.0200.13751.88
7.0.00.0270.09051.82
5.6.280.0200.21085.74
5.6.210.0370.15085.32
5.6.200.0330.09782.67
5.6.190.0200.11384.93
5.6.180.4200.10385.00
5.6.170.0270.13085.04
5.6.160.0400.15384.87
5.6.150.0200.14082.77
5.6.140.0370.08782.79
5.6.130.0230.18782.75
5.6.120.0300.11785.61
5.6.110.0200.10085.61
5.6.100.0230.11085.66
5.6.90.0370.14085.64
5.6.80.0370.08784.92
5.6.70.1900.10085.07
5.5.350.0230.14785.03
5.5.340.0170.14382.61
5.5.330.0230.10384.93
5.5.320.0570.12384.84
5.5.310.0530.13084.72
5.5.300.0400.15082.60
5.5.290.0170.16382.58
5.5.280.0330.09085.51
5.5.270.0570.14085.30
5.5.260.0370.15785.49
5.5.250.0430.13385.23
5.5.240.0370.10084.79
5.4.450.0570.12083.93
5.4.440.0300.13384.09
5.4.430.0330.10384.01
5.4.420.0400.10084.02
5.4.410.0400.14083.79
5.4.400.0470.09783.63
5.4.390.0500.09383.63
5.4.380.0500.09783.60
5.4.370.0630.13783.34
5.4.360.0230.11383.46
5.4.350.0200.10383.50
5.4.340.0530.08383.39
5.4.320.0470.13083.58
5.4.310.0630.13083.45
5.4.300.0500.10783.64
5.4.290.0400.09383.63
5.4.280.0670.12083.50
5.4.270.0370.09383.60
5.4.260.0670.13383.64
5.4.250.0270.10083.59
5.4.240.0770.10783.64
5.4.230.0270.10083.59
5.4.220.0530.14783.82
5.4.210.0300.10383.59
5.4.200.0400.10383.84
5.4.190.0530.08783.57
5.4.180.0430.09383.81
5.4.170.0370.10083.44
5.4.160.0430.10783.61
5.4.150.0230.10783.57
5.4.140.0270.15080.88
5.4.130.0400.10380.78
5.4.120.1170.07780.79
5.4.110.0370.09780.84
5.4.100.0430.09081.04
5.4.90.0730.11381.11
5.4.80.0530.10080.89
5.4.70.0400.09080.99
5.4.60.0630.10080.95
5.4.50.0400.08780.75
5.4.40.0470.12081.02
5.4.30.0430.08381.02
5.4.20.0700.09080.76
5.4.10.0400.10080.98
5.4.00.0900.11380.29
5.3.290.0370.14777.90
5.3.280.0400.10777.70
5.3.270.0430.10377.73
5.3.260.0600.15077.65
5.3.250.0430.10077.73
5.3.240.0770.13377.61
5.3.230.0370.09377.72
5.3.220.0430.14377.59
5.3.210.0800.11777.69
5.3.200.0570.14777.61
5.3.190.0530.14377.68
5.3.180.0430.11077.66
5.3.170.0370.10077.56
5.3.160.0800.12777.59
5.3.150.0370.13777.57
5.3.140.0770.12777.58
5.3.130.0500.12377.55
5.3.120.0570.09377.65
5.3.110.0630.12377.57
5.3.100.0730.12777.03
5.3.90.0370.09777.05
5.3.80.0630.14776.97
5.3.70.0400.14776.96
5.3.60.0630.12076.94
5.3.50.0270.10376.92
5.3.40.0200.11377.00
5.3.30.0430.08777.11
5.3.20.0430.12076.74
5.3.10.0530.13776.62
5.3.00.0500.15376.70
5.2.170.0370.12074.69
5.2.160.0430.10774.65
5.2.150.0700.13374.70
5.2.140.0500.09074.82
5.2.130.0300.16374.61
5.2.120.0430.10774.93
5.2.110.0330.10374.59
5.2.100.0400.15374.78
5.2.90.0400.10774.70
5.2.80.0370.16374.69
5.2.70.0300.15074.60
5.2.60.0330.15374.51
5.2.50.0400.17774.63
5.2.40.0270.16075.17
5.2.30.0430.14075.19
5.2.20.0500.15774.56
5.2.10.0300.11074.61
5.2.00.0700.307140.47
5.1.60.0670.247185.58
5.1.50.0430.290185.67
5.1.40.0800.280185.54
5.1.30.0730.283185.83
5.1.20.0830.267185.95
5.1.10.0870.413185.56
5.1.00.0700.427185.80
5.0.50.0800.557184.05
5.0.40.0970.800183.90
5.0.30.0570.803183.79
5.0.20.1070.490183.67
5.0.10.0700.797183.66
5.0.00.0600.530183.67
4.4.90.0230.597181.52
4.4.80.0630.460181.52
4.4.70.0700.567181.52
4.4.60.0470.550181.55
4.4.50.0470.483181.52
4.4.40.0430.493181.61
4.4.30.0600.517181.60
4.4.20.0570.537181.56
4.4.10.0370.603181.55
4.4.00.0400.513181.57
4.3.110.0330.537181.49
4.3.100.0470.500181.48
4.3.90.0730.573181.45
4.3.80.0330.573181.46
4.3.70.1330.550181.50
4.3.60.2070.627181.48
4.3.50.1530.503181.51
4.3.40.1070.480181.47
4.3.30.0530.453180.24
4.3.20.0600.450180.23
4.3.10.0300.497180.16
4.3.00.0600.463180.13

preferences:
39.21 ms | 401 KiB | 5 Q