3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( 0 => 'timestamp', 1 => '1447931724.712686', 2 => 'bridgeid', 3 => 'bc343ddc-78bf-4e5c-8ba5-cb0a9893a81a' ); function redishash_toarray ($in) { $arr = ''; $c = count($in)/2; for ( $k = 0 ; $k < $c; $k++) { $arr[$in[$k * 2 ]]=$in[$k * 2 + 1]; } return $arr; } print_r(redishash_toarray ($arr));

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.0140.00418.68
8.3.50.0130.00718.05
8.3.40.0090.00618.61
8.3.30.0120.00318.74
8.3.20.0080.00620.34
8.3.10.0000.00823.66
8.3.00.0000.00819.51
8.2.180.0120.00618.41
8.2.170.0090.00922.96
8.2.160.0100.00320.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00317.88
8.2.120.0080.00026.35
8.2.110.0060.00320.57
8.2.100.0090.00317.75
8.2.90.0040.00419.34
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0060.00318.05
8.2.50.0000.00718.07
8.2.40.0000.00819.26
8.2.30.0070.00020.75
8.2.20.0030.00517.70
8.2.10.0000.00918.05
8.2.00.0100.00018.01
8.1.280.0140.00025.92
8.1.270.0000.00923.88
8.1.260.0080.00028.09
8.1.250.0150.00028.09
8.1.240.0100.00720.95
8.1.230.0040.00820.97
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0050.00517.34
8.1.190.0000.00817.70
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0070.00022.02
8.1.150.0070.00018.91
8.1.140.0030.00519.60
8.1.130.0000.00717.63
8.1.120.0040.00417.42
8.1.110.0050.00217.50
8.1.100.0030.00517.41
8.1.90.0040.00417.36
8.1.80.0050.00217.44
8.1.70.0070.00017.37
8.1.60.0060.00317.59
8.1.50.0080.00017.59
8.1.40.0030.00617.44
8.1.30.0030.00617.61
8.1.20.0000.00817.66
8.1.10.0040.00417.61
8.1.00.0030.00617.41
8.0.300.0070.00018.77
8.0.290.0000.00816.88
8.0.280.0000.00718.46
8.0.270.0080.00017.21
8.0.260.0030.00317.27
8.0.250.0030.00516.95
8.0.240.0030.00317.02
8.0.230.0030.00317.05
8.0.220.0070.00016.96
8.0.210.0070.00017.04
8.0.200.0050.00317.05
8.0.190.0030.00517.04
8.0.180.0040.00416.88
8.0.170.0000.00817.09
8.0.160.0030.00316.97
8.0.150.0070.00017.04
8.0.140.0040.00416.92
8.0.130.0030.00313.36
8.0.120.0040.00416.90
8.0.110.0070.00016.91
8.0.100.0000.00716.77
8.0.90.0070.00016.97
8.0.80.0150.00017.00
8.0.70.0040.00416.81
8.0.60.0030.00616.77
8.0.50.0050.00217.08
8.0.30.0120.00817.04
8.0.20.0110.00917.40
8.0.10.0000.00716.95
8.0.00.0080.01116.86
7.4.330.0030.00316.76
7.4.320.0030.00316.51
7.4.300.0000.00616.61
7.4.290.0000.00716.62
7.4.280.0070.00016.51
7.4.270.0000.00616.57
7.4.260.0000.00716.53
7.4.250.0000.00816.58
7.4.240.0070.00116.61
7.4.230.0030.00316.71
7.4.220.0060.01316.47
7.4.210.0120.00316.60
7.4.200.0040.00416.59
7.4.160.0050.01116.61
7.4.150.0070.01717.40
7.4.140.0100.00817.86
7.4.130.0110.00916.49
7.4.120.0080.01016.60
7.4.110.0080.01916.47
7.4.100.0090.00916.48
7.4.90.0080.00816.59
7.4.80.0030.01419.39
7.4.70.0090.00816.64
7.4.60.0100.00716.34
7.4.50.0000.01316.55
7.4.40.0100.00716.63
7.4.30.0140.01016.44
7.4.00.0030.01015.08
7.3.330.0000.00513.46
7.3.320.0050.00013.23
7.3.310.0000.00716.43
7.3.300.0000.00716.28
7.3.290.0060.01116.40
7.3.280.0080.00916.48
7.3.270.0050.01417.40
7.3.260.0110.00916.46
7.3.250.0110.00816.55
7.3.240.0100.00716.58
7.3.230.0070.01016.55
7.3.210.0120.00616.42
7.3.200.0160.00316.46
7.3.190.0110.00616.41
7.3.180.0080.00816.39
7.3.170.0040.01316.45
7.3.160.0150.00916.55
7.3.10.0080.00716.73
7.3.00.0110.00316.67
7.2.330.0120.00616.57
7.2.320.0100.00716.78
7.2.310.0130.00316.81
7.2.300.0100.00616.83
7.2.290.0100.00616.44
7.2.130.0120.00617.04
7.2.120.0030.00616.88
7.2.110.0040.00716.89
7.2.100.0060.00616.78
7.2.90.0090.00916.68
7.2.80.0050.00716.78
7.2.70.0110.00316.63
7.2.60.0060.00816.83
7.2.50.0120.00516.82
7.2.40.0030.00816.83
7.2.30.0090.00816.60
7.2.20.0050.00916.90
7.2.10.0050.01016.77
7.2.00.0030.00817.61
7.1.250.0080.00315.67
7.1.200.0000.01315.55
7.1.100.0080.00417.85
7.1.70.0000.00717.12
7.1.60.0110.01419.36
7.1.50.0060.00616.95
7.1.00.0000.07722.42
7.0.200.0000.00716.79
7.0.60.0070.05319.86
7.0.50.0100.04017.87
7.0.40.0030.08020.10
7.0.30.0570.03320.08
7.0.20.0330.07020.26
7.0.10.0070.08320.19
7.0.00.0100.05320.24
5.6.280.0030.03021.07
5.6.210.0170.07320.61
5.6.200.0030.04318.22
5.6.190.0070.08720.77
5.6.180.0370.07320.61
5.6.170.0270.05320.47
5.6.160.0170.07320.71
5.6.150.0070.06718.28
5.6.140.0000.05318.27
5.6.130.0130.04018.28
5.6.120.0000.04320.90
5.6.110.0100.05320.89
5.6.100.0130.08320.98
5.6.90.0130.06721.04
5.6.80.0070.08320.39
5.5.350.0230.08020.34
5.5.340.0100.07318.07
5.5.330.0030.04320.43
5.5.320.0000.08320.31
5.5.310.0500.04720.37
5.5.300.0000.04317.95
5.5.290.0100.05018.08
5.5.280.0000.06020.98
5.5.270.0100.06720.77
5.5.260.0200.07320.64
5.5.250.0100.03720.61
5.5.240.4030.04320.16

preferences:
50.31 ms | 401 KiB | 5 Q