3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = explode(',', 'Katha,pooja,singer,katha'); $result = []; foreach ($array as $value) { $result[strtolower($value)] = $value; } var_export(array_values($result));

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.5.10.0080.00919.47
8.5.00.0100.01420.00
8.4.150.0020.00014.05
8.4.140.0130.00817.61
8.4.130.0100.01017.68
8.4.120.0120.00720.44
8.4.110.0090.01222.41
8.4.100.0130.00817.81
8.4.90.0110.00918.40
8.4.80.0040.00517.82
8.4.70.0150.00617.84
8.4.60.0090.00718.51
8.4.50.0140.00717.64
8.4.40.0090.00620.34
8.4.30.0060.00924.21
8.4.20.0170.00319.54
8.4.10.0070.01322.21
8.3.280.0140.00718.36
8.3.270.0120.00916.66
8.3.260.0090.01016.36
8.3.250.0090.00718.64
8.3.240.0120.00716.32
8.3.230.0070.00116.48
8.3.220.0120.00717.18
8.3.210.0050.00316.55
8.3.200.0050.00416.59
8.3.190.0100.00917.36
8.3.180.0080.00718.35
8.3.170.0140.00319.21
8.3.160.0160.00316.62
8.3.150.0110.00718.91
8.3.140.0110.00419.03
8.3.130.0030.00618.25
8.3.120.0120.00618.82
8.3.110.0070.01116.41
8.3.100.0070.01016.64
8.3.90.0120.00326.77
8.3.80.0050.00518.30
8.3.70.0140.00716.63
8.3.60.0150.00016.50
8.3.50.0070.00716.80
8.3.40.0110.00320.34
8.3.30.0110.00318.89
8.3.20.0150.00024.18
8.3.10.0050.00224.66
8.3.00.0070.00026.16
8.2.290.0120.00620.52
8.2.280.0100.00618.52
8.2.270.0130.00717.36
8.2.260.0120.00618.43
8.2.250.0030.00618.53
8.2.240.0120.00318.37
8.2.230.0030.00520.94
8.2.220.0090.00924.06
8.2.210.0080.00026.77
8.2.200.0040.00416.50
8.2.190.0040.01116.63
8.2.180.0100.01316.50
8.2.170.0090.00918.77
8.2.160.0120.00922.96
8.2.150.0030.00625.66
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0040.00419.66
8.2.110.0030.00619.45
8.2.100.0120.00017.91
8.2.90.0030.00617.75
8.2.80.0000.00818.95
8.2.70.0080.00017.63
8.2.60.0180.00017.25
8.2.50.0150.00317.50
8.2.40.0120.00617.35
8.2.30.0110.00517.50
8.2.20.0120.00417.38
8.2.10.0170.00017.36
8.2.00.0130.00317.73
8.1.330.0070.00623.94
8.1.320.0110.00815.97
8.1.310.0100.00318.35
8.1.300.0030.01518.06
8.1.290.0080.00430.84
8.1.280.0120.00325.92
8.1.270.0040.00424.66
8.1.260.0110.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00423.90
8.1.230.0040.00720.88
8.1.220.0080.00018.74
8.1.210.0050.00318.77
8.1.200.0060.00317.48
8.1.190.0180.00017.38
8.1.180.0160.00317.00
8.1.170.0120.00316.98
8.1.160.0070.01017.38
8.1.150.0120.00417.38
8.1.140.0100.00716.88
8.1.130.0110.00717.13
8.1.120.0090.00916.75
8.1.110.0110.00717.00
8.1.100.0060.01017.00
8.1.90.0130.00417.25
8.1.80.0080.00817.00
8.1.70.0090.00617.00
8.1.60.0140.00417.38
8.1.50.0080.00817.36
8.1.40.0160.00417.50
8.1.30.0100.00817.38
8.1.20.0130.00417.50
8.1.10.0140.00717.00
8.1.00.0130.00417.25
8.0.300.0080.00019.98
8.0.290.0040.00416.63
8.0.280.0130.00316.61
8.0.270.0100.00516.63
8.0.260.0120.00416.61
8.0.250.0150.00016.63
8.0.240.0150.00216.59
8.0.230.0150.00316.52
8.0.220.0130.00316.63
8.0.210.0160.00016.52
8.0.200.0110.00516.74
8.0.190.0120.00416.75
8.0.180.0110.00816.52
8.0.170.0110.00516.52
8.0.160.0080.00816.52
8.0.150.0160.00016.52
8.0.140.0160.00016.73
8.0.130.0080.00816.63
8.0.120.0080.00816.74
8.0.110.0080.00816.52
8.0.100.0100.00516.52
8.0.90.0150.00216.75
8.0.80.0090.00816.63
8.0.70.0000.01616.52
8.0.60.0080.00816.59
8.0.50.0080.00816.52
8.0.30.0180.00016.52
8.0.20.0080.00816.75
8.0.10.0080.00816.52

preferences:
33.73 ms | 403 KiB | 5 Q