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]; } } 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.0070.01318.43
8.3.50.0140.00721.96
8.3.40.0070.00718.84
8.3.30.0100.01018.79
8.3.20.0070.00720.38
8.3.10.0040.00423.53
8.3.00.0000.00819.50
8.2.180.0090.00616.75
8.2.170.0100.01022.96
8.2.160.0100.00320.43
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0100.00017.50
8.2.120.0060.00326.35
8.2.110.0070.00319.25
8.2.100.0030.01017.63
8.2.90.0000.00819.35
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00419.21
8.2.30.0000.00720.51
8.2.20.0040.00417.86
8.2.10.0080.00018.02
8.2.00.0090.00018.01
8.1.280.0160.00625.92
8.1.270.0040.00723.84
8.1.260.0040.00428.09
8.1.250.0070.00728.09
8.1.240.0040.00417.89
8.1.230.0110.00017.79
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0050.00417.35
8.1.190.0050.00317.82
8.1.180.0040.00418.10
8.1.170.0060.00318.50
8.1.160.0000.00722.08
8.1.150.0020.00518.95
8.1.140.0000.00819.51
8.1.130.0050.00217.68
8.1.120.0000.00717.39
8.1.110.0030.00317.37
8.1.100.0040.00417.55
8.1.90.0030.00517.51
8.1.80.0040.00417.48
8.1.70.0030.00317.38
8.1.60.0000.00817.61
8.1.50.0040.00417.44
8.1.40.0040.00417.55
8.1.30.0040.00417.73
8.1.20.0000.00917.47
8.1.10.0030.00617.58
8.1.00.0030.00617.38
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0000.00818.48
8.0.270.0040.00417.29
8.0.260.0060.00017.14
8.0.250.0030.00316.96
8.0.240.0040.00417.00
8.0.230.0040.00417.03
8.0.220.0050.00216.89
8.0.210.0050.00216.98
8.0.200.0000.00717.04
8.0.190.0030.00516.91
8.0.180.0040.00417.02
8.0.170.0040.00416.93
8.0.160.0070.00016.93
8.0.150.0000.00716.90
8.0.140.0000.00716.92
8.0.130.0000.00613.39
8.0.120.0000.00816.94
8.0.110.0000.00717.00
8.0.100.0050.00216.81
8.0.90.0070.00016.88
8.0.80.0040.01117.04
8.0.70.0000.00716.79
8.0.60.0000.00817.00
8.0.50.0040.00416.75
8.0.30.0140.00517.13
8.0.20.0120.00817.40
8.0.10.0040.00417.16
8.0.00.0090.01016.93
7.4.330.0050.00016.73
7.4.320.0060.00016.62
7.4.300.0030.00316.51
7.4.290.0030.00316.62
7.4.280.0070.00016.49
7.4.270.0070.00016.66
7.4.260.0020.00516.50
7.4.250.0000.00816.58
7.4.240.0000.00716.53
7.4.230.0030.00316.40
7.4.220.0060.01316.65
7.4.210.0090.00616.65
7.4.200.0030.00516.64
7.4.160.0120.00316.66
7.4.150.0090.00517.40
7.4.140.0090.01017.86
7.4.130.0090.00916.51
7.4.120.0120.00516.50
7.4.110.0120.00616.71
7.4.100.0100.00716.52
7.4.90.0100.00716.57
7.4.80.0090.01419.39
7.4.70.0090.00916.54
7.4.60.0040.01316.58
7.4.50.0090.00616.53
7.4.40.0030.01416.49
7.4.30.0030.01316.59
7.4.00.0000.01014.77
7.3.330.0050.00013.41
7.3.320.0070.00013.45
7.3.310.0040.00416.48
7.3.300.0070.00016.30
7.3.290.0070.00916.42
7.3.280.0090.00816.48
7.3.270.0130.00417.40
7.3.260.0130.00316.67
7.3.250.0090.00816.45
7.3.240.0060.01316.66
7.3.230.0060.01016.46
7.3.210.0130.00316.45
7.3.200.0060.01016.53
7.3.190.0000.01516.46
7.3.180.0040.01216.61
7.3.170.0100.00716.51
7.3.160.0130.01016.43
7.2.330.0120.00816.79
7.2.320.0140.00316.86
7.2.310.0140.00316.80
7.2.300.0090.00916.55
7.2.290.0040.01316.64
7.2.60.0030.01016.93
7.2.00.0030.01319.12
7.1.200.0030.00615.91
7.1.100.0000.01117.86
7.1.70.0040.00417.12
7.1.60.0030.02119.36
7.1.50.0070.01317.02
7.1.00.0070.07322.45
7.0.200.0000.00716.85
7.0.60.0170.07320.04
7.0.50.0030.04717.86
7.0.40.0070.08320.09
7.0.30.0200.04320.30
7.0.20.0400.08020.24
7.0.10.0100.07020.24
7.0.00.0000.08720.23
5.6.280.0030.05020.93
5.6.210.0030.05320.52
5.6.200.0070.03718.16
5.6.190.0100.08320.42
5.6.180.0330.06720.48
5.6.170.0270.05020.51
5.6.160.0070.08020.52
5.6.150.0100.07718.21
5.6.140.0100.04018.15
5.6.130.0000.04718.14
5.6.120.0000.04320.90
5.6.110.0000.09020.99
5.6.100.0100.06321.09
5.6.90.0130.07021.13
5.6.80.0130.06020.44
5.5.350.0330.06320.30
5.5.340.0170.07018.01
5.5.330.0030.05020.29
5.5.320.0100.05720.38
5.5.310.0300.08020.34
5.5.300.0100.03317.98
5.5.290.0030.06717.98
5.5.280.0000.05720.82
5.5.270.0100.07020.79
5.5.260.0000.05020.73
5.5.250.0030.08720.79
5.5.240.3900.04320.16

preferences:
47.37 ms | 401 KiB | 5 Q