3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr[] = ["_source" => ["block" => ["Kurud"], "district" => ["Dhamtari"], "state" => ["Chhattisgarh"]]]; $arr[] = ["_source" => ["block" => ["North-Bangeluru"], "district" => ["Bangalore"], "state" => ["Karnataka"]]]; $keys = array_keys($arr[0]["_source"]); $res[] = $keys; foreach($arr as $e) { $temp = []; foreach($keys as $k) $temp[] = $e["_source"][$k][0]; $res[] = $temp; } print_r($res);

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.30.0070.01122.33
8.4.20.0130.00718.88
8.4.10.0090.00019.44
8.3.160.0150.00616.68
8.3.150.0110.00717.10
8.3.140.0000.00816.80
8.3.130.0140.00318.33
8.3.120.0030.00618.70
8.3.110.0060.00320.94
8.3.100.0120.00324.06
8.3.90.0070.01126.77
8.3.80.0030.00719.36
8.3.70.0070.01416.25
8.3.60.0130.01018.43
8.3.50.0100.00722.13
8.3.40.0040.01118.80
8.3.30.0040.01518.75
8.3.20.0030.00520.83
8.3.10.0040.00420.05
8.3.00.0100.00625.87
8.2.270.0130.00616.57
8.2.260.0080.00018.75
8.2.250.0100.01016.51
8.2.240.0080.00016.96
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0110.00316.58
8.2.180.0180.00318.41
8.2.170.0110.00322.96
8.2.160.0070.00722.26
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0080.00527.12
8.2.120.0070.00727.12
8.2.110.0100.00525.08
8.2.100.0080.00623.00
8.2.90.0030.01123.71
8.2.80.0110.00523.03
8.2.70.0100.00522.86
8.2.60.0060.00423.07
8.2.50.0090.00323.08
8.2.40.0050.00523.22
8.2.30.0050.00423.12
8.2.20.0090.00023.10
8.2.10.0010.00623.68
8.2.00.0060.00223.69
8.1.310.0090.00618.68
8.1.300.0100.01017.77
8.1.290.0000.00930.84
8.1.280.0140.00325.92
8.1.270.0040.00422.01
8.1.260.0070.00227.22
8.1.250.0050.00328.09
8.1.240.0040.00525.34
8.1.230.0110.00222.89
8.1.220.0030.00622.91
8.1.210.0050.00323.43
8.1.200.0070.00222.72
8.1.190.0030.00522.72
8.1.180.0060.00323.09
8.1.170.0030.00523.34
8.1.160.0010.00723.49
8.1.150.0020.00623.50
8.1.140.0060.00223.50
8.1.130.0030.00824.11
8.1.120.0100.00522.77
8.1.110.0110.00622.75
8.1.100.0110.00422.79
8.1.90.0090.00722.71
8.1.80.0120.00022.78
8.1.70.0050.00822.77
8.1.60.0090.00622.83
8.1.50.0040.00722.77
8.1.40.0050.00822.80
8.1.30.0070.00622.85
8.1.20.0090.00322.83
8.1.10.0090.00322.79
8.1.00.0090.00222.77
8.0.300.0060.00323.43
8.0.290.0060.00622.33
8.0.280.0050.00423.23
8.0.270.0030.00722.67
8.0.260.0050.00324.14
8.0.250.0060.00522.48
8.0.240.0080.00222.51
8.0.230.0050.00722.50
8.0.220.0060.00122.45
8.0.210.0060.00122.47
8.0.200.0050.00222.51
8.0.190.0020.00622.48
8.0.180.0060.00222.49
8.0.170.0060.00222.44
8.0.160.0020.00622.48
8.0.150.0030.00522.46
8.0.140.0050.00822.41
8.0.130.0070.00020.69
8.0.120.0070.00422.47
8.0.110.0040.00722.40
8.0.100.0030.00522.51
8.0.90.0060.00322.40
8.0.80.0100.00620.60
8.0.70.0110.00022.44
8.0.60.0050.00522.51
8.0.50.0080.00422.45
8.0.30.0130.00520.79
8.0.20.0080.01022.47
8.0.10.0030.00722.47
8.0.00.0110.00719.58
7.4.330.0090.00721.82
7.4.320.0140.00222.30
7.4.300.0140.00322.36
7.4.290.0110.00722.33
7.4.280.0190.00422.26
7.4.270.0150.00722.27
7.4.260.0170.00522.33
7.4.250.0170.00522.29
7.4.240.0150.00320.40
7.4.230.0170.00522.33
7.4.220.0160.00522.29
7.4.210.0160.00519.43
7.4.200.0170.00322.28
7.4.190.0270.00828.09
7.4.180.0190.01228.09
7.4.160.0270.00328.09
7.4.150.0350.00428.09
7.4.140.0210.00522.97
7.4.130.0240.00222.24
7.4.120.0160.00722.30
7.4.110.0130.00522.26
7.4.100.0170.00822.23
7.4.90.0080.00922.24
7.4.80.0110.01123.74
7.4.70.0080.00822.29
7.4.60.0080.01222.24
7.4.50.0080.00722.34
7.4.40.0080.00822.18
7.4.30.0140.00328.09
7.4.20.0200.00728.09
7.4.10.0200.01228.09
7.4.00.0150.01021.55
7.3.330.0140.00720.58
7.3.320.0160.00420.65
7.3.310.0140.00722.23
7.3.300.0110.00522.14
7.3.290.0100.01220.26
7.3.280.0200.00722.18
7.3.270.0230.00428.09
7.3.260.0140.00618.03
7.3.250.0290.01028.09
7.3.240.0100.01018.81
7.3.230.0220.00422.31
7.3.220.0250.00728.09
7.3.210.0130.01422.20
7.3.200.0230.00422.22
7.3.190.0190.00622.32
7.3.180.0150.00922.18
7.3.170.0200.00522.18
7.3.160.0190.00622.30
7.3.150.0290.00728.09
7.3.140.0290.01028.09
7.3.130.0150.00528.09
7.3.120.0090.00821.44
7.3.110.0080.00521.52
7.3.100.0100.00521.41
7.3.90.0130.00221.47
7.3.80.0090.00421.46
7.3.70.0080.00821.45
7.3.60.0070.00819.13
7.3.50.0070.00719.27
7.3.40.0090.00819.26
7.3.30.0050.01019.07
7.3.20.0110.00520.52
7.3.10.0070.01020.42
7.3.00.0120.00220.46
7.2.340.0350.00428.09
7.2.330.0110.00522.39
7.2.320.0150.00122.32
7.2.310.0100.00622.40
7.2.300.0140.00322.32
7.2.290.0070.01022.30
7.2.280.0250.00928.09
7.2.270.0240.01028.09
7.2.260.0320.00328.09
7.2.250.0260.01328.09
7.2.240.0180.00921.71
7.2.230.0200.00721.57
7.2.220.0160.00321.43
7.2.210.0110.00521.70
7.2.200.0070.00921.64
7.2.190.0080.00619.38
7.2.180.0090.00919.36
7.2.170.0070.01119.28
7.2.160.0090.00419.46
7.2.150.0120.00620.63
7.2.140.0130.00520.63
7.2.130.0100.00620.54
7.2.120.0110.00620.62
7.2.110.0140.00920.71
7.2.100.0150.00920.63
7.2.90.0130.00120.71
7.2.80.0110.00920.70
7.2.70.0170.00620.46
7.2.60.0170.00620.63
7.2.50.0040.01120.62
7.2.40.0130.00520.67
7.2.30.0100.00520.63
7.2.20.0070.00920.51
7.2.10.0100.00420.59
7.2.00.0130.00720.55
7.1.330.0050.00921.97
7.1.320.0080.00721.88
7.1.310.0050.01022.03
7.1.300.0100.00719.96
7.1.290.0100.00819.89
7.1.280.0120.00419.92
7.1.270.0130.00419.96
7.1.260.0100.00419.99
7.1.250.0050.00819.98
7.1.240.0120.00228.09
7.1.230.0110.01128.09
7.1.220.0140.00528.09
7.1.210.0140.00028.09
7.1.200.0000.01428.09
7.1.190.0140.00028.09
7.1.180.0180.01128.09
7.1.170.0170.00628.09
7.1.160.0240.00728.09
7.1.150.0200.00828.09
7.1.140.0130.00728.09
7.1.130.0090.00528.09
7.1.120.0110.00428.09
7.1.110.0140.00028.09
7.1.100.0190.00828.09
7.1.90.0100.00328.09
7.1.80.0280.00328.09
7.1.70.0130.01328.09
7.1.60.0160.00528.09
7.1.50.0090.00628.09
7.1.40.0160.00328.09
7.1.30.0210.01028.09
7.1.20.0250.00828.09
7.1.10.0240.01028.09
7.1.00.0280.00328.09

preferences:
28.26 ms | 403 KiB | 5 Q