3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['id' => 117, 'name' => 'Networking', 'count' => 16], ['id' => 188, 'name' => 'FTP', 'count' => 23], ['id' => 189, 'name' => 'Internet', 'count' => 48], ]; $min = array_shift($array)['count'] ?? null; $max = $min; foreach ($array as $row) { if ($min > $row['count']) { $min = $row['count']; } if ($max < $row['count']) { $max = $row['count']; } } var_export(['min' => $min, 'max' => $max]);

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.4.130.0100.00918.63
8.4.120.0110.00824.02
8.4.110.0110.00922.16
8.4.100.0070.01317.80
8.4.90.0110.00818.46
8.4.80.0090.01217.77
8.4.70.0100.01017.60
8.4.60.0090.00718.40
8.4.50.0060.00417.73
8.4.40.0040.00417.54
8.4.30.0130.00720.50
8.4.20.0060.00317.64
8.4.10.0030.00619.46
8.3.260.0090.01016.62
8.3.250.0120.00618.88
8.3.240.0150.00517.05
8.3.230.0040.00516.70
8.3.220.0060.00117.05
8.3.210.0060.00416.75
8.3.200.0130.00616.57
8.3.190.0050.00317.39
8.3.180.0110.00716.48
8.3.170.0090.01018.79
8.3.160.0040.00416.48
8.3.150.0140.00420.72
8.3.140.0120.00318.36
8.3.130.0120.00618.50
8.3.120.0060.00318.68
8.3.110.0030.00620.94
8.3.100.0090.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00619.36
8.3.70.0110.00418.43
8.3.60.0000.01518.43
8.3.50.0080.01017.49
8.3.40.0120.00318.59
8.3.30.0120.00318.42
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0060.00926.16
8.2.290.0110.00820.69
8.2.280.0090.00620.32
8.2.270.0090.00919.13
8.2.260.0060.00618.31
8.2.250.0130.00016.54
8.2.240.0040.00418.80
8.2.230.0100.01022.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0090.00018.88
8.2.190.0090.00618.38
8.2.180.0070.00725.92
8.2.170.0100.00319.00
8.2.160.0140.00022.96
8.2.150.0090.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.40
8.2.110.0030.00620.28
8.2.100.0040.00817.91
8.2.90.0000.00817.97
8.2.80.0030.00618.16
8.2.70.0040.00417.93
8.2.60.0000.00818.05
8.2.50.0040.00418.05
8.2.40.0030.00618.28
8.2.30.0050.00218.18
8.2.20.0040.00418.11
8.2.10.0000.00819.28
8.2.00.0040.00419.17
8.1.330.0110.00721.79
8.1.320.0110.00816.23
8.1.310.0100.00716.44
8.1.300.0060.01319.90
8.1.290.0030.00630.84
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0070.00726.35
8.1.250.0050.00328.09
8.1.240.0050.00523.91
8.1.230.0070.00421.04
8.1.220.0050.00221.02
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0040.00417.36
8.1.180.0000.00918.10
8.1.170.0040.00418.30
8.1.160.0000.00718.88
8.1.150.0040.00418.84
8.1.140.0000.00718.93
8.1.130.0000.00817.45
8.1.120.0040.00417.50
8.1.110.0040.00417.46
8.1.100.0040.00417.45
8.1.90.0060.00317.36
8.1.80.0000.00817.50
8.1.70.0060.00317.46
8.1.60.0070.00017.56
8.1.50.0030.00617.42
8.1.40.0030.00617.46
8.1.30.0040.00417.64
8.1.20.0040.00417.61
8.1.10.0040.00417.43
8.1.00.0040.00417.39
8.0.300.0040.00419.69
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0030.00318.04
8.0.260.0050.00316.81
8.0.250.0020.00516.83
8.0.240.0030.00516.96
8.0.230.0000.00816.81
8.0.220.0030.00616.88
8.0.210.0070.00016.84
8.0.200.0000.00816.86
8.0.190.0050.00216.92
8.0.180.0030.00516.92
8.0.170.0000.00816.90
8.0.160.0040.00416.90
8.0.150.0080.00016.83
8.0.140.0080.00016.85
8.0.130.0030.00313.27
8.0.120.0040.00416.83
8.0.110.0040.00416.70
8.0.100.0050.00216.88
8.0.90.0000.00716.79
8.0.80.0050.01016.84
8.0.70.0040.00416.77
8.0.60.0040.00416.75
8.0.50.0040.00416.77
8.0.30.0120.00916.89
8.0.20.0110.00616.98
8.0.10.0130.00817.20
8.0.00.0080.00816.89
7.4.330.0000.00515.55
7.4.320.0060.00016.51
7.4.300.0070.00016.42
7.4.290.0000.00716.61
7.4.280.0060.00316.58
7.4.270.0000.00816.54
7.4.260.0030.00313.28
7.4.250.0030.00316.48
7.4.240.0000.00716.50
7.4.230.0040.00416.60
7.4.220.0020.00516.54
7.4.210.0100.00716.60
7.4.200.0070.00016.53
7.4.160.0040.01316.45
7.4.150.0080.00816.54
7.4.140.0100.00616.38
7.4.130.0130.00816.42
7.4.120.0050.01316.55
7.4.110.0120.00616.44
7.4.100.0090.00916.53
7.4.90.0110.00716.42
7.4.80.0090.01116.56
7.4.70.0090.00516.40
7.4.60.0060.00916.54
7.4.50.0100.01016.56
7.4.40.0100.01016.40
7.4.30.0170.00316.13
7.4.20.0170.00316.23
7.4.10.0080.00516.29
7.4.00.0140.00416.59
7.3.330.0000.00716.38
7.3.320.0050.00013.07
7.3.310.0000.00716.25
7.3.300.0000.00616.13
7.3.290.0060.00816.34
7.3.270.0100.00716.46
7.3.260.0070.01016.30
7.3.250.0050.01016.46
7.3.240.0040.01116.36
7.3.230.0040.01416.24
7.3.220.0100.01016.51
7.3.210.0070.01316.58
7.3.200.0070.01316.53
7.3.190.0150.00016.31
7.3.180.0090.01216.37
7.3.170.0070.00716.37
7.3.160.0060.01316.18
7.3.150.0090.00916.48
7.3.140.0070.00716.28
7.3.130.0080.01016.52
7.3.120.0210.00316.43
7.3.110.0120.00416.46
7.3.100.0090.00916.30
7.3.90.0090.01216.39
7.3.80.0000.01516.24
7.3.70.0090.00616.39
7.3.60.0000.01516.36
7.3.50.0160.00416.34
7.3.40.0070.01116.33
7.3.30.0040.01716.39
7.3.20.0070.00716.34
7.3.10.0080.00816.31
7.3.00.0090.01216.45

preferences:
26.97 ms | 403 KiB | 5 Q