3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( 'make' =>Array ( '0' =>'Volvo', '1' =>'Volvonew' ) , 'model' =>Array ( '0' =>'FH16', '1' => 123 ) , 'vehicleno' =>Array ( '0' =>'RS95SMB', '1' =>'RS95SMB' ) , 'reg_state' =>Array ( '0' =>'QLDS', '1' =>'QLDS' ) ); $i=0; $return = array(); foreach($array as $key=>$value) { $return[$i][$key] = $value[$i]; $return[$i+1][$key] = $value[$i+1]; } print_r(($return)); ?>

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.4.10.0060.00319.48
8.3.140.0000.00816.54
8.3.130.0080.00816.86
8.3.120.0070.00318.87
8.3.110.0000.00816.75
8.3.100.0000.00924.06
8.3.90.0000.00826.77
8.3.80.0090.00016.75
8.3.70.0090.00918.30
8.3.60.0150.00718.45
8.3.50.0100.00924.40
8.3.40.0150.00318.77
8.3.30.0090.00618.55
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.260.0110.00718.85
8.2.250.0000.00816.60
8.2.240.0030.00618.75
8.2.230.0000.00820.94
8.2.220.0060.00337.54
8.2.210.0090.00226.77
8.2.200.0060.00316.38
8.2.190.0100.01016.58
8.2.180.0130.00325.92
8.2.170.0140.00418.98
8.2.160.0000.01422.96
8.2.150.0080.00025.66
8.2.140.0090.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00426.35
8.2.110.0060.00621.04
8.2.100.0140.00317.91
8.2.90.0000.00817.75
8.2.80.0030.00518.91
8.2.70.0000.00817.63
8.2.60.0000.00917.50
8.2.50.0000.00818.05
8.2.40.0000.00818.28
8.2.30.0000.00718.13
8.2.20.0030.00618.00
8.2.10.0040.00419.37
8.2.00.0000.00719.30
8.1.310.0040.00416.86
8.1.300.0090.00020.34
8.1.290.0060.00330.84
8.1.280.0110.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0070.00319.27
8.1.230.0040.00817.79
8.1.220.0000.00917.76
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0030.00517.00
8.1.180.0050.00518.10
8.1.170.0000.00818.56
8.1.160.0060.00318.85
8.1.150.0000.00718.80
8.1.140.0000.00718.76
8.1.130.0070.00020.08
8.1.120.0040.00417.44
8.1.110.0000.00717.34
8.1.100.0000.00817.49
8.1.90.0030.00317.43
8.1.80.0040.00417.46
8.1.70.0070.00017.46
8.1.60.0000.00817.60
8.1.50.0060.00317.52
8.1.40.0000.00817.47
8.1.30.0000.00817.63
8.1.20.0030.01017.48
8.1.10.0060.00317.47
8.1.00.0050.00217.30
8.0.300.0040.00418.95
8.0.290.0040.00416.63
8.0.280.0030.00318.49
8.0.270.0000.00818.07
8.0.260.0000.00618.46
8.0.250.0070.00016.92
8.0.240.0070.00016.92
8.0.230.0000.00716.84
8.0.220.0040.00416.86
8.0.210.0070.00016.78
8.0.200.0000.00716.93
8.0.190.0000.00716.96
8.0.180.0000.00716.89
8.0.170.0000.00916.79
8.0.160.0040.00416.78
8.0.150.0070.00016.74
8.0.140.0040.00416.83
8.0.130.0030.00313.30
8.0.120.0000.00816.77
8.0.110.0080.00016.84
8.0.100.0030.00516.88
8.0.90.0020.00516.80
8.0.80.0070.01016.82
8.0.70.0040.00416.76
8.0.60.0040.00416.78
8.0.50.0000.00716.84
8.0.30.0030.01417.15
8.0.20.0080.01217.00
8.0.10.0070.00017.02
8.0.00.0090.00916.71
7.4.330.0030.00315.55
7.4.320.0070.00016.55
7.4.300.0060.00016.44
7.4.290.0000.00816.46
7.4.280.0070.00416.43
7.4.270.0000.00716.49
7.4.260.0000.00513.20
7.4.250.0030.00316.57
7.4.240.0000.00716.50
7.4.230.0000.00716.50
7.4.220.0020.00516.36
7.4.210.0050.01016.54
7.4.200.0000.00716.50
7.4.130.0080.01016.57
7.4.120.0080.00816.48
7.4.110.0200.00316.70
7.4.100.0140.00316.51
7.4.90.0110.00516.42
7.4.80.0120.00919.39
7.4.70.0080.00916.49
7.4.60.0090.00816.34
7.4.50.0070.00916.38
7.4.40.0080.01016.49
7.4.30.0090.00816.51
7.4.20.0100.00616.42
7.4.10.0140.00316.32
7.4.00.0100.00716.55
7.3.330.0040.00416.13
7.3.320.0000.00613.23
7.3.310.0050.00216.39
7.3.300.0070.00016.34
7.3.290.0130.00316.33
7.3.260.0140.01016.36
7.3.240.0110.00916.47
7.3.230.0140.00816.59
7.3.210.0100.00716.42
7.3.200.0090.00616.42
7.3.190.0070.00916.34
7.3.180.0080.00816.29
7.3.170.0090.00716.40
7.3.160.0080.00916.50
7.3.150.0030.01316.24
7.3.140.0060.01116.49
7.3.130.0080.00816.51
7.3.120.0070.01116.43
7.3.110.0110.00816.22
7.3.100.0090.00716.28
7.3.90.0170.00316.45
7.3.80.0100.00816.51
7.3.70.0100.00816.37
7.3.60.0120.00616.36
7.3.50.0100.00716.37
7.3.40.0080.01016.22
7.3.30.0100.01116.49
7.3.20.0070.01516.30
7.3.10.0150.00616.46
7.3.00.0080.01016.30
7.2.330.0150.00616.62
7.2.320.0100.00716.78
7.2.310.0060.01016.63
7.2.300.0110.00716.61
7.2.290.0070.01016.68
7.2.280.0120.00516.75
7.2.270.0050.01216.58
7.2.260.0070.01016.53
7.2.250.0050.01316.65
7.2.240.0040.01316.44
7.2.230.0170.00416.51
7.2.220.0150.00516.61
7.2.210.0130.00716.65
7.2.200.0080.01016.49
7.2.190.0130.00616.61
7.2.180.0060.01416.56
7.2.170.0130.00716.49
7.2.160.0110.00816.59
7.2.150.0160.00416.70
7.2.140.0200.00916.66
7.2.130.0200.00816.74
7.2.120.0100.01016.74
7.2.110.0110.00816.68
7.2.100.0130.00616.63
7.2.90.0100.00816.69
7.2.80.0090.01016.54
7.2.70.0110.00616.59
7.2.60.0100.00716.56
7.2.50.0090.00916.64
7.2.40.0100.00816.61
7.2.30.0060.01116.51
7.2.20.0110.00816.54
7.2.10.0160.00416.48
7.2.00.0120.00616.59

preferences:
64.78 ms | 403 KiB | 5 Q