3v4l.org

run code in 300+ PHP versions simultaneously
<?php function normalizeArray($ids) { $res = array(); $ids = (array) $ids; if (count($ids) > 0) { foreach ($ids as $id) { if (is_numeric($id)) { $res[] = (int) ($id); } } } return $res; } $s = ', '; $s = explode(',',$s); $i = normalizeArray($s); var_dump($i);

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.3.60.0090.00616.63
8.3.50.0130.00721.99
8.3.40.0150.00318.41
8.3.30.0000.01519.05
8.3.20.0000.00820.08
8.3.10.0040.00423.70
8.3.00.0040.00420.90
8.2.180.0170.00316.88
8.2.170.0040.01122.96
8.2.160.0130.00318.90
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0030.00619.36
8.2.110.0080.00022.29
8.2.100.0080.00418.09
8.2.90.0070.00019.15
8.2.80.0000.00917.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0030.00619.82
8.2.30.0070.00318.13
8.2.20.0070.00017.67
8.2.10.0030.00518.12
8.2.00.0040.00419.44
8.1.280.0070.01025.92
8.1.270.0080.00023.87
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0030.00523.79
8.1.230.0060.00619.10
8.1.220.0040.00417.77
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0030.00517.13
8.1.180.0000.00818.10
8.1.170.0050.00218.65
8.1.160.0070.00022.06
8.1.150.0070.00018.60
8.1.140.0000.00817.46
8.1.130.0030.00317.88
8.1.120.0070.00317.41
8.1.110.0050.00317.35
8.1.100.0040.00417.48
8.1.90.0000.00717.48
8.1.80.0030.00517.49
8.1.70.0030.00617.34
8.1.60.0030.00617.60
8.1.50.0030.00517.47
8.1.40.0000.00817.47
8.1.30.0050.00317.57
8.1.20.0000.00917.68
8.1.10.0030.00617.41
8.1.00.0070.00017.28
8.0.300.0040.00418.88
8.0.290.0070.00016.75
8.0.280.0070.00018.51
8.0.270.0080.00017.34
8.0.260.0030.00317.18
8.0.250.0020.00516.87
8.0.240.0040.00416.89
8.0.230.0000.00716.80
8.0.220.0000.00716.90
8.0.210.0060.00016.90
8.0.200.0030.00317.00
8.0.190.0040.00416.89
8.0.180.0110.00016.92
8.0.170.0040.00416.94
8.0.160.0030.00316.88
8.0.150.0040.00416.79
8.0.140.0070.00016.74
8.0.130.0070.00013.26
8.0.120.0040.00416.86
8.0.110.0070.00016.78
8.0.100.0080.00016.91
8.0.90.0070.00016.83
8.0.80.0060.01016.85
8.0.70.0000.00816.90
8.0.60.0040.00416.86
8.0.50.0040.00416.98
8.0.30.0120.01017.08
8.0.20.0070.01117.40
8.0.10.0040.00417.06
8.0.00.0060.01116.57
7.4.330.0020.00215.05
7.4.320.0030.00316.65
7.4.300.0040.00416.58
7.4.290.0040.00416.46
7.4.280.0040.00416.57
7.4.270.0070.00016.52
7.4.260.0040.00416.62
7.4.250.0000.00716.45
7.4.240.0020.00616.60
7.4.230.0040.00416.56
7.4.220.0040.01216.46
7.4.210.0120.00616.64
7.4.200.0030.00316.44
7.4.160.0040.01216.62
7.4.150.0160.00617.40
7.4.140.0050.01217.86
7.4.130.0130.00316.42
7.4.120.0070.01116.60
7.4.110.0100.00716.55
7.4.100.0110.00616.55
7.4.90.0040.01416.47
7.4.80.0120.00619.39
7.4.70.0030.01316.52
7.4.60.0060.00916.61
7.4.50.0040.00016.24
7.4.40.0110.01116.30
7.4.30.0080.00816.62
7.4.00.0060.00915.04
7.3.330.0000.00513.30
7.3.320.0020.00313.34
7.3.310.0050.00316.34
7.3.300.0060.00016.32
7.3.290.0100.00316.38
7.3.280.0090.01016.32
7.3.270.0210.00317.40
7.3.260.0110.00716.44
7.3.250.0100.00916.47
7.3.240.0060.00916.36
7.3.230.0080.00816.59
7.3.210.0100.00716.55
7.3.200.0130.00319.39
7.3.190.0030.01816.41
7.3.180.0110.00816.36
7.3.170.0060.00916.66
7.3.160.0080.00916.37
7.3.120.0040.01214.93
7.2.330.0080.01516.34
7.2.320.0070.01016.83
7.2.310.0040.01216.80
7.2.300.0120.00616.64
7.2.290.0100.00616.59
7.2.00.0000.01419.20
7.1.100.0030.01018.06
7.1.70.0030.00317.19
7.1.60.0070.00719.70
7.1.50.0070.01416.95
7.1.00.0130.06722.40
7.0.200.0070.00316.74
7.0.140.0030.06721.97
7.0.110.0130.07319.87
7.0.100.0200.07720.04
7.0.90.0230.06319.93
7.0.80.0100.06719.99
7.0.70.0100.05319.99
7.0.60.0200.07019.86
7.0.50.0070.04020.41
7.0.40.0030.09020.06
7.0.30.0100.08020.02
7.0.20.0030.05320.01
7.0.10.0100.07320.18
7.0.00.0170.06720.12
5.6.280.0100.06721.11
5.6.260.0130.06720.55
5.6.250.0130.07320.61
5.6.240.0070.08320.50
5.6.230.0030.08320.61
5.6.220.0070.04720.79
5.6.210.0000.08320.35
5.6.200.0070.08321.04
5.6.190.0130.07721.22
5.6.180.0100.07721.29
5.6.170.0200.07021.08
5.6.160.0100.07321.19
5.6.150.0100.07721.22
5.6.140.0130.08021.11
5.6.130.0200.06720.93
5.6.120.0100.07720.98
5.6.110.0100.08721.28
5.6.100.0070.08721.07
5.6.90.0130.08021.20
5.6.80.0100.07020.34
5.6.70.0100.05320.33
5.6.60.0070.07720.34
5.6.50.0100.07320.32
5.6.40.0030.07720.40
5.6.30.0000.08320.58
5.6.20.0030.08720.55
5.6.10.0170.07720.48
5.6.00.0030.08720.63
5.5.380.0100.05720.32
5.5.370.0070.08020.33
5.5.360.0230.06320.32
5.5.350.0030.08720.45
5.5.340.0030.07320.97
5.5.330.0130.07320.78
5.5.320.0130.07720.91
5.5.310.0070.08020.84
5.5.300.0030.07020.90
5.5.290.0030.08720.84
5.5.280.0100.06720.96
5.5.270.0070.08320.95
5.5.260.0130.07321.01
5.5.250.0100.07720.51
5.5.240.0030.08720.38
5.5.230.0100.07320.26
5.5.220.0030.08320.41
5.5.210.0030.07720.28
5.5.200.0070.07720.22
5.5.190.0130.07020.16
5.5.180.0130.04320.38
5.5.160.0070.07320.30
5.5.150.0070.07320.32
5.5.140.0100.07320.29
5.5.130.0030.05020.13
5.5.120.0030.05320.33
5.5.110.0070.07720.32
5.5.100.0030.04320.05
5.5.90.0100.04720.08
5.5.80.0070.07320.14
5.5.70.0130.04320.09
5.5.60.0030.08720.05
5.5.50.0100.07320.15
5.5.40.0030.07320.00
5.5.30.0000.04320.13
5.5.20.0000.07720.24
5.5.10.0100.04020.04
5.5.00.0030.07720.21
5.4.450.0100.07319.57
5.4.440.0100.07719.55
5.4.430.0170.06719.35
5.4.420.0070.08019.64
5.4.410.0100.07319.53
5.4.400.0200.06319.23
5.4.390.0070.07319.16
5.4.380.0030.07719.09
5.4.370.0100.07019.00
5.4.360.0070.05319.35
5.4.350.0030.04319.09
5.4.340.0070.07319.09
5.4.320.0100.07018.98
5.4.310.0070.07319.24
5.4.300.0070.06719.24
5.4.290.0070.07719.31
5.4.280.0030.06719.24
5.4.270.0100.07719.18
5.4.260.0070.05319.34
5.4.250.0100.06319.10
5.4.240.0000.08019.16
5.4.230.0100.07319.33
5.4.220.0070.07018.95
5.4.210.0000.08019.00
5.4.200.0130.05319.17
5.4.190.0070.05719.17
5.4.180.0100.05019.22
5.4.170.0170.07019.31
5.4.160.0100.07019.12
5.4.150.0100.07719.14
5.4.140.0000.05016.39
5.4.130.0130.04016.29
5.4.120.0070.06716.46
5.4.110.0070.07016.26
5.4.100.0000.06016.66
5.4.90.0100.07016.47
5.4.80.0100.06316.45
5.4.70.0030.06716.52
5.4.60.0070.07016.57
5.4.50.0070.06316.44
5.4.40.0070.07016.58
5.4.30.0130.07016.47
5.4.20.0070.07016.54
5.4.10.0030.04716.54
5.4.00.0030.07315.91
5.3.290.0030.07314.66
5.3.280.0030.05014.62
5.3.270.0130.07014.73
5.3.260.0200.06314.58
5.3.250.0030.07714.64
5.3.240.0070.07314.58
5.3.230.0030.07014.68
5.3.220.0030.04714.79
5.3.210.0100.07714.69
5.3.200.0100.07014.56
5.3.190.0070.07714.43
5.3.180.0030.07314.70
5.3.170.0070.07714.52
5.3.160.0030.07714.66
5.3.150.0030.07714.79
5.3.140.0130.06714.69
5.3.130.0070.07314.57
5.3.120.0070.05714.56
5.3.110.0030.04714.55
5.3.100.0000.07314.07
5.3.90.0200.06014.15
5.3.80.0070.07313.88
5.3.70.0030.07314.04
5.3.60.0170.04013.98
5.3.50.0130.06014.00
5.3.40.0100.07014.02
5.3.30.0070.04313.99
5.3.20.0070.07713.72
5.3.10.0070.07013.69
5.3.00.0070.05313.87
5.2.170.0130.03711.72
5.2.160.0030.07011.72
5.2.150.0030.06311.72
5.2.140.0030.06711.72
5.2.130.0000.06711.72
5.2.120.0000.04311.72
5.2.110.0000.06311.72
5.2.100.0000.05011.72
5.2.90.0100.05711.72
5.2.80.0000.06011.72
5.2.70.0070.03311.72
5.2.60.0000.05711.72
5.2.50.0000.06311.72
5.2.40.0030.04711.72
5.2.30.0100.05311.72
5.2.20.0030.04011.72
5.2.10.0070.05711.72
5.2.00.0130.04711.72
5.1.60.0030.05011.72
5.1.50.0030.03011.72
5.1.40.0000.06011.72
5.1.30.0130.04011.72
5.1.20.0030.05311.72
5.1.10.0030.05011.72
5.1.00.0070.03711.72
5.0.50.0070.02711.72
5.0.40.0070.04011.72
5.0.30.0030.06311.72
5.0.20.0000.04011.72
5.0.10.0070.04011.72
5.0.00.0000.06711.72
4.4.90.0000.03711.72
4.4.80.0030.01711.72
4.4.70.0030.03711.72
4.4.60.0030.02311.72
4.4.50.0070.02311.72
4.4.40.0030.05011.72
4.4.30.0070.03311.72
4.4.20.0000.03711.72
4.4.10.0000.03311.72
4.4.00.0070.05311.72
4.3.110.0000.03711.72
4.3.100.0000.02011.72
4.3.90.0030.03311.72
4.3.80.0070.05011.72
4.3.70.0030.01711.72
4.3.60.0100.02711.72
4.3.50.0000.03711.72
4.3.40.0130.04011.72
4.3.30.0030.03311.72
4.3.20.0030.03011.72
4.3.10.0030.03011.72
4.3.00.0000.03311.72

preferences:
53.38 ms | 401 KiB | 5 Q