3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = array( '$empty' => array(), '$full' => range(1, 1000), ); $count = 100 * 1000; foreach ($tests as $name => $array) { printf("%-10s", $name); $start = microtime(true); $i = $count; while ($i-- > 0) { (bool) $array; } $total = microtime(true) - $start; printf("%.2F sec total, %.4F sec/iter\n", $total, $total / $count); }

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.3.10.0060.01316.59
7.3.00.0070.00716.11
7.2.130.0130.01016.84
7.2.120.0040.01416.92
7.2.110.0030.02116.30
7.2.100.0070.00716.60
7.2.90.0030.02017.01
7.2.80.0030.00916.63
7.2.70.0000.01317.07
7.2.60.0000.01516.98
7.2.50.0190.00617.09
7.2.40.0160.01316.97
7.2.30.0210.00916.97
7.2.20.0100.01017.08
7.2.10.0040.01216.87
7.2.00.0020.01217.93
7.1.250.0100.01315.45
7.1.70.0070.01017.15
7.1.60.0140.01719.82
7.1.50.0070.02216.98
7.1.00.0000.08722.42
7.0.200.0030.01316.61
7.0.140.0030.07721.99
7.0.60.0070.09319.89
7.0.50.0130.07017.74
7.0.40.0070.04320.12
7.0.30.0300.08020.18
7.0.20.0230.05720.13
7.0.10.0270.08320.02
7.0.00.0030.04720.04
5.6.280.0072.23321.15
5.6.210.0102.39320.54
5.6.200.0072.30318.17
5.6.190.0132.34020.56
5.6.180.3372.16320.55
5.6.170.0232.25720.48
5.6.160.0172.32720.52
5.6.150.0002.28718.22
5.6.140.0002.28718.07
5.6.130.0072.28718.07
5.6.120.0172.28320.93
5.6.110.2302.27021.14
5.6.100.0032.28321.16
5.6.90.0002.16721.02
5.6.80.0172.35720.43
5.6.70.0302.07320.40
5.5.350.0032.19720.34
5.5.340.0072.32017.93
5.5.330.0172.41320.22
5.5.320.0202.39320.18
5.5.310.0172.20720.18
5.5.300.0072.35717.99
5.5.290.0072.39317.95
5.5.280.0102.26320.78
5.5.270.0002.37020.68
5.5.260.0132.33720.79
5.5.250.0072.38020.80
5.5.240.0032.45320.19
5.4.450.0072.29319.51
5.4.440.0172.26019.54
5.4.430.0202.23319.52
5.4.420.0302.36019.50
5.4.410.0402.41019.43
5.4.400.0202.44019.06
5.4.390.0372.41019.18
5.4.380.0232.42719.07
5.4.370.0272.40719.08
5.4.360.0302.40319.08
5.4.350.0232.28019.27
5.4.340.0302.32319.19
5.4.320.0272.42019.27
5.4.310.0302.41319.19
5.4.300.0172.44019.26
5.4.290.0372.41719.26
5.4.280.0202.44019.27
5.4.270.0232.42319.20
5.4.260.0102.46019.28
5.4.250.0202.21319.19
5.4.240.0201.86019.37
5.4.230.0102.06319.00
5.4.220.0201.99719.28
5.4.210.0331.89719.32
5.4.200.0232.23719.08
5.4.190.0172.38319.27
5.4.180.0072.43719.34
5.4.170.0232.35319.00
5.4.160.0132.43319.22
5.4.150.0272.35719.23
5.4.140.0172.42016.65
5.4.130.0272.34316.40
5.4.120.0072.42316.51
5.4.110.0232.42016.42
5.4.100.0072.38716.61
5.4.90.0332.34316.69
5.4.80.0102.40016.50
5.4.70.0172.42716.57
5.4.60.0172.42316.57
5.4.50.0032.41316.65
5.4.40.0272.38316.61
5.4.30.0202.42716.59
5.4.20.0132.41316.51
5.4.10.0132.38716.59
5.4.00.0372.31715.89
5.3.290.0272.42314.65
5.3.280.0132.03014.61
5.3.270.0172.42314.48
5.3.260.0172.40314.59
5.3.250.0302.38714.68
5.3.240.0232.36314.56
5.3.230.0172.41714.55
5.3.220.0132.40014.54
5.3.210.0132.39314.53
5.3.200.0202.42714.64
5.3.190.0202.38014.52
5.3.180.0132.43314.54
5.3.170.0272.32714.48
5.3.160.0332.27314.56
5.3.150.0072.41014.55
5.3.140.0172.44314.54
5.3.130.0402.37014.55
5.3.120.0402.33714.57
5.3.110.0072.43014.42
5.3.100.0302.36313.97
5.3.90.0302.36014.00
5.3.80.0132.42013.96
5.3.70.0172.42013.86
5.3.60.0232.36013.91
5.3.50.0172.38313.71
5.3.40.0202.35713.86
5.3.30.0232.42013.80
5.3.20.0202.36313.52
5.3.10.0132.37713.57
5.3.00.0132.40713.52
5.2.170.0432.35311.06
5.2.160.0432.37011.07
5.2.150.0332.32311.07
5.2.140.0202.41711.06
5.2.130.0202.40311.01
5.2.120.0302.33711.09
5.2.110.0172.45311.02
5.2.100.0172.41311.07
5.2.90.0202.39710.85
5.2.80.0272.41011.01
5.2.70.0132.45311.00
5.2.60.0032.45710.96
5.2.50.0032.40710.94
5.2.40.0132.44010.92
5.2.30.0072.38710.82
5.2.20.0102.43710.94
5.2.10.0072.41310.91
5.2.00.0232.40310.71
5.1.60.0202.41310.17
5.1.50.0272.41710.18
5.1.40.0232.39310.06
5.1.30.0172.45010.44
5.1.20.0132.43710.45
5.1.10.0232.45710.25
5.1.00.0202.40310.12
5.0.50.0072.4478.62
5.0.40.0302.3838.39
5.0.30.0172.4278.29
5.0.20.0172.4378.16
5.0.10.0232.3638.11
5.0.00.0172.4278.26
4.4.90.0172.3606.91
4.4.80.0102.3736.91
4.4.70.0032.4406.91
4.4.60.0072.3536.91
4.4.50.0032.4176.91
4.4.40.0002.4476.91
4.4.30.0232.4336.91
4.4.20.0172.3836.91
4.4.10.0332.4476.91
4.4.00.0102.4536.91
4.3.110.0202.3876.91
4.3.100.0102.4406.91
4.3.90.0302.4436.91
4.3.80.0032.4106.91
4.3.70.0072.4306.91
4.3.60.0032.4576.91
4.3.50.0202.4476.91
4.3.40.0032.4306.91
4.3.30.0032.4336.89
4.3.20.0172.4276.89
4.3.10.0072.4476.89
4.3.00.0272.3976.89

preferences:
36.54 ms | 400 KiB | 5 Q