3v4l.org

run code in 300+ PHP versions simultaneously
<?php $existing_array = [ "ROWID" =>[ 0 => 0, 1 => 1, 2 => 2 ], "First Name" => [ 0 => "BILLY", 1 => "SALLY", 2 => "TYLER" ], "Last Name" => [ 0 => "RAY", 1 => "SUE", 2 => "TERRIER" ], "Middle Name" =>[ 0 => "B.", 1 => "S.", 2 => "T." ] ]; $expected_array = ['ROWID'=>$existing_array['ROWID'],'First Name'=>$existing_array['First Name'],'Middle Name'=>$existing_array['Middle Name'],'Last Name'=>$existing_array['Last Name']]; print_r($expected_array);

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.0100.00816.68
8.5.00.0140.00919.74
8.4.160.0100.01223.71
8.4.150.0010.00114.05
8.4.140.0090.01217.38
8.4.130.0150.00417.91
8.4.120.0050.00320.42
8.4.110.0130.00718.80
8.4.100.0070.00217.47
8.4.90.0110.00920.30
8.4.80.0060.00418.83
8.4.70.0050.00318.74
8.4.60.0120.00918.65
8.4.50.0140.00618.52
8.4.40.0040.00817.50
8.4.30.0100.00719.54
8.4.20.0130.00720.24
8.4.10.0160.00317.59
8.3.280.0020.00014.05
8.3.270.0150.00516.74
8.3.260.0030.00616.52
8.3.250.0030.00519.05
8.3.240.0060.00316.43
8.3.230.0160.00416.51
8.3.220.0060.00318.98
8.3.210.0100.00916.70
8.3.200.0050.00316.73
8.3.190.0040.00416.80
8.3.180.0040.00516.65
8.3.170.0130.00318.73
8.3.160.0040.01518.16
8.3.150.0110.00716.42
8.3.140.0040.00417.30
8.3.130.0060.00316.61
8.3.120.0090.00020.54
8.3.110.0040.00416.52
8.3.100.0000.00920.16
8.3.90.0090.00026.77
8.3.80.0060.00318.50
8.3.70.0100.01016.58
8.3.60.0070.00718.18
8.3.50.0100.00717.41
8.3.40.0150.00618.66
8.3.30.0160.00018.49
8.3.20.0040.00418.40
8.3.10.0070.00723.61
8.3.00.0040.00422.27
8.2.290.0100.00818.65
8.2.280.0060.01018.55
8.2.270.0090.00019.07
8.2.260.0030.00618.57
8.2.250.0080.00018.34
8.2.240.0120.00616.79
8.2.230.0030.00620.94
8.2.220.0100.01024.06
8.2.210.0040.00426.77
8.2.200.0060.00318.41
8.2.190.0060.01516.58
8.2.180.0030.01225.92
8.2.170.0110.00718.97
8.2.160.0040.01122.96
8.2.150.0050.00525.66
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0070.00019.27
8.2.110.0030.00620.91
8.2.100.0040.00817.72
8.2.90.0000.00817.84
8.2.80.0050.00317.97
8.2.70.0000.00818.04
8.2.60.0090.00017.50
8.2.50.0000.00818.07
8.2.40.0000.00918.28
8.2.30.0050.00318.18
8.2.20.0030.00517.92
8.2.10.0040.00419.30
8.2.00.0050.00317.72
8.1.330.0090.00915.89
8.1.320.0120.00718.06
8.1.310.0090.00018.27
8.1.300.0080.00018.34
8.1.290.0070.00418.88
8.1.280.0120.00625.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0060.00319.21
8.1.230.0080.00419.22
8.1.220.0000.00817.74
8.1.210.0000.00719.02
8.1.200.0030.00917.22
8.1.190.0030.00617.11
8.1.180.0080.00018.10
8.1.170.0040.00818.64
8.1.160.0040.00418.87
8.1.150.0000.00718.73
8.1.140.0040.00423.80
8.1.130.0000.00720.07
8.1.120.0050.00317.44
8.1.110.0030.00517.37
8.1.100.0030.00317.28
8.1.90.0030.00617.34
8.1.80.0030.00717.34
8.1.70.0090.00017.38
8.1.60.0000.00717.48
8.1.50.0080.00017.46
8.1.40.0040.00417.26
8.1.30.0040.00417.54
8.1.20.0040.00417.61
8.1.10.0000.00817.53
8.1.00.0030.00617.36
8.0.300.0040.00419.63
8.0.290.0090.00016.63
8.0.280.0030.00318.29
8.0.270.0030.00317.15
8.0.260.0000.00620.19
8.0.250.0000.00716.92
8.0.240.0070.00316.88
8.0.230.0000.00916.93
8.0.220.0000.00716.79
8.0.210.0040.00416.73
8.0.200.0080.00016.89
8.0.190.0030.00316.87
8.0.180.0020.00516.86
8.0.170.0060.00316.89
8.0.160.0070.00316.74
8.0.150.0040.00716.63
8.0.140.0050.00216.68
8.0.130.0000.00513.20
8.0.120.0000.00716.67
8.0.110.0080.00016.84
8.0.100.0050.00316.72
8.0.90.0040.00416.75
8.0.80.0070.00916.75
8.0.70.0000.00716.79
8.0.60.0000.00716.85
8.0.50.0000.00716.79
8.0.30.0120.00716.95
8.0.20.0140.00617.40
8.0.10.0050.00316.83
8.0.00.0110.00816.69
7.4.330.0050.00015.55
7.4.320.0030.00316.55
7.4.300.0000.00716.50
7.4.290.0030.00316.51
7.4.280.0000.00916.32
7.4.270.0030.00316.45
7.4.260.0070.00316.52
7.4.250.0000.00716.53
7.4.240.0040.00316.53
7.4.230.0040.00416.43
7.4.220.0000.00816.48
7.4.210.0030.01416.45
7.4.200.0060.00316.46
7.4.160.0090.00816.42
7.4.140.0120.00717.86
7.4.130.0180.00416.43
7.4.120.0100.00716.31
7.4.110.0160.00716.40
7.4.100.0070.01016.16
7.4.90.0150.00316.41
7.4.80.0090.00919.39
7.4.70.0060.01616.57
7.4.60.0030.01216.40
7.4.50.0030.01416.52
7.4.40.0170.00316.36
7.4.00.0050.01414.83
7.3.330.0050.00013.18
7.3.320.0030.00313.00
7.3.310.0070.00016.26
7.3.300.0030.00316.15
7.3.290.0070.00016.18
7.3.280.0070.01016.17
7.3.260.0090.00916.33
7.3.240.0090.01016.33
7.3.230.0100.00716.32
7.3.210.0000.01616.48
7.3.200.0030.01316.34
7.3.190.0100.01016.37
7.3.180.0090.00616.30
7.3.170.0150.00616.47
7.3.160.0090.00916.24
7.3.120.0060.00914.66
7.3.110.0080.00614.38
7.3.100.0080.00615.04
7.3.90.0000.01414.78
7.3.80.0100.00714.97
7.3.70.0100.00014.82
7.3.60.0110.00014.47
7.3.50.0030.01214.84
7.3.40.0050.00514.68
7.3.30.0000.01414.70
7.3.20.0030.01016.77
7.3.10.0100.00716.58
7.3.00.0000.01516.77
7.2.330.0100.00716.64
7.2.320.0100.00716.45
7.2.310.0030.01516.30
7.2.300.0070.01016.21
7.2.290.0030.01416.34
7.2.250.0130.00314.75
7.2.240.0030.01314.82
7.2.230.0090.00615.07
7.2.220.0030.01015.07
7.2.210.0080.00415.11
7.2.200.0040.01115.00
7.2.190.0090.00614.86
7.2.180.0040.01515.02
7.2.170.0060.01015.00
7.2.110.2790.01014.60
7.2.100.0170.00614.51
7.2.90.1730.00614.56
7.2.80.0170.00014.59
7.2.70.0990.01014.77
7.2.60.0450.01014.90
7.2.50.0170.00614.70
7.2.40.0160.01014.91
7.2.30.2910.00714.91
7.2.20.2550.00314.93
7.2.10.3070.00714.99
7.2.00.3230.01314.97
7.1.330.0110.00415.68
7.1.320.0000.01315.56
7.1.310.0120.00316.08
7.1.300.0040.01115.70
7.1.290.0070.00315.95
7.1.280.0070.01015.67
7.1.270.0100.00615.57
7.1.260.0030.00715.71
7.1.230.0190.00613.74
7.1.220.0140.00313.79
7.1.210.0930.00713.74
7.1.200.0180.00413.80
7.1.190.0110.00213.70
7.1.180.0260.00913.80
7.1.170.0080.00813.64
7.1.160.0350.01113.96
7.1.150.3110.00313.68
7.1.140.2870.00313.48
7.1.130.3890.01213.63
7.1.120.2540.01013.89
7.1.110.3200.00613.88
7.1.100.3220.00313.89
7.1.90.2260.01313.61
7.1.80.2050.00713.71
7.1.70.2320.00513.95
7.1.60.2420.01031.55
7.1.50.2660.01031.77
7.1.40.2970.01631.57
7.1.30.2580.00331.72
7.1.20.2340.00331.89
7.1.10.2570.01013.79
7.1.00.2610.01013.71
5.6.380.0080.01014.32

preferences:
46.79 ms | 403 KiB | 5 Q