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); 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.70.0110.00716.63
8.3.60.0150.00618.55
8.3.50.0160.00622.01
8.3.40.0070.01418.67
8.3.30.0030.01718.68
8.3.20.0100.00720.34
8.3.10.0080.00023.70
8.3.00.0060.00319.38
8.2.190.0140.00016.86
8.2.180.0070.00716.38
8.2.170.0110.00422.96
8.2.160.0120.00420.38
8.2.150.0050.00324.18
8.2.140.0110.00424.66
8.2.130.0050.00517.50
8.2.120.0000.00826.35
8.2.110.0070.00420.93
8.2.100.0090.00317.88
8.2.90.0000.00819.17
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0000.01017.92
8.2.50.0030.00618.07
8.2.40.0080.00019.33
8.2.30.0040.00420.51
8.2.20.0090.00017.82
8.2.10.0000.00918.19
8.2.00.0040.00418.08
8.1.280.0120.00925.92
8.1.270.0030.00623.96
8.1.260.0110.00628.09
8.1.250.0030.01028.09
8.1.240.0060.00323.98
8.1.230.0090.00317.66
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0000.01117.47
8.1.190.0000.00817.59
8.1.180.0040.00418.10
8.1.170.0040.00418.54
8.1.160.0040.00421.93
8.1.150.0000.00718.86
8.1.140.0040.00419.55
8.1.130.0030.00317.58
8.1.120.0000.00717.51
8.1.110.0040.00417.44
8.1.100.0030.00517.46
8.1.90.0000.00717.41
8.1.80.0040.00417.45
8.1.70.0000.00717.33
8.1.60.0000.00817.62
8.1.50.0050.00317.58
8.1.40.0000.00817.47
8.1.30.0050.00317.65
8.1.20.0000.00717.47
8.1.10.0040.00417.53
8.1.00.0030.00617.40
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0030.00317.20
8.0.260.0060.00017.20
8.0.250.0030.00316.91
8.0.240.0000.00717.05
8.0.230.0030.00317.06
8.0.220.0040.00416.97
8.0.210.0000.00716.93
8.0.200.0000.00717.03
8.0.190.0060.00316.95
8.0.180.0070.00016.94
8.0.170.0040.00416.87
8.0.160.0000.00816.99
8.0.150.0030.00416.97
8.0.140.0040.00416.91
8.0.130.0000.00513.36
8.0.120.0080.00016.93
8.0.110.0030.00616.96
8.0.100.0000.00716.93
8.0.90.0080.00016.74
8.0.80.0070.01416.99
8.0.70.0040.00416.98
8.0.60.0050.00216.91
8.0.50.0000.00716.92
8.0.30.0120.00517.13
8.0.20.0150.00717.40
8.0.10.0040.00417.00
8.0.00.0070.01216.82
7.4.330.0050.00016.73
7.4.320.0000.00616.57
7.4.300.0000.00616.62
7.4.290.0030.00316.46
7.4.280.0080.00016.61
7.4.270.0000.00616.67
7.4.260.0040.00416.64
7.4.250.0040.00416.43
7.4.240.0040.00316.55
7.4.230.0030.00316.63
7.4.220.0130.01016.54
7.4.210.0120.00816.64
7.4.200.0050.00316.59
7.4.160.0060.01216.70
7.4.150.0110.01217.40
7.4.140.0060.01417.86
7.4.130.0060.01116.45
7.4.120.0070.01316.64
7.4.110.0090.00916.72
7.4.100.0100.01316.52
7.4.90.0080.00816.51
7.4.80.0160.00319.39
7.4.70.0140.00916.50
7.4.60.0120.00916.55
7.4.50.0060.00316.35
7.4.40.0070.01516.39
7.4.30.0060.01316.50
7.4.00.0070.00715.23
7.3.330.0050.00013.28
7.3.320.0050.00013.31
7.3.310.0000.00716.54
7.3.300.0070.00016.38
7.3.290.0070.00916.45
7.3.280.0040.01316.42
7.3.270.0090.00917.40
7.3.260.0000.01716.53
7.3.250.0050.01416.38
7.3.240.0080.00916.56
7.3.230.0140.00316.65
7.3.210.0140.00416.58
7.3.200.0100.00716.61
7.3.190.0040.01216.46
7.3.180.0130.00316.43
7.3.170.0130.00216.61
7.3.160.0180.00416.44
7.2.330.0160.00616.74
7.2.320.0030.01316.52
7.2.310.0130.00616.69
7.2.300.0130.00516.64
7.2.290.0060.01216.60
7.2.60.0000.01417.04
7.1.200.0030.00915.60
7.1.70.0040.00417.05
7.1.60.0140.01119.36
7.1.50.0070.00417.02
7.1.00.0030.07322.44
7.0.200.0000.00816.88
7.0.60.0030.09019.93
7.0.50.0030.08717.86
7.0.40.0170.08020.20
7.0.30.0200.08020.11
7.0.20.0430.07720.33
7.0.10.0070.09020.07
7.0.00.0030.05720.22
5.6.280.0030.06020.86
5.6.210.0170.06720.47
5.6.200.0030.04318.20
5.6.190.0070.05320.42
5.6.180.0330.07720.63
5.6.170.0200.08020.50
5.6.160.0070.09320.52
5.6.150.0070.05718.19
5.6.140.0130.07318.18
5.6.130.0030.04018.27
5.6.120.0070.04021.10
5.6.110.0130.07720.99
5.6.100.0100.06320.98
5.6.90.0170.08020.88
5.6.80.0100.07320.51
5.5.350.0230.07320.45
5.5.340.0030.07317.95
5.5.330.0070.03720.22
5.5.320.0030.06720.35
5.5.310.0400.05320.27
5.5.300.0070.03717.92
5.5.290.0030.07017.94
5.5.280.0130.08320.78
5.5.270.0170.07320.67
5.5.260.0130.08020.76
5.5.250.0100.07720.71
5.5.240.0230.06320.34

preferences:
69.06 ms | 401 KiB | 5 Q