3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"options": {"options0": {"name":"soph","value":"School of Public Health"}, "options1": {"name":"son","value":"School of Nursing"}, "options2": {"name":"sohp","value":"School of Health Professions"} } }'; $arr = array_column(json_decode($json, true)['options'], "value", "name"); var_dump($arr); echo $arr['sohp'];

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.0110.00616.81
8.5.00.0130.01020.02
8.4.150.0030.00014.05
8.4.140.0140.00617.91
8.4.130.0100.00518.66
8.4.120.0060.00420.32
8.4.110.0120.00818.76
8.4.100.0120.00918.78
8.4.90.0090.00820.55
8.4.80.0040.00418.69
8.4.70.0130.00617.85
8.4.60.0130.00619.09
8.4.50.0100.00620.49
8.4.40.0100.01019.43
8.4.30.0120.00817.57
8.4.20.0100.01020.84
8.4.10.0090.00020.65
8.3.280.0130.00820.16
8.3.270.0120.00716.63
8.3.260.0120.00816.67
8.3.250.0040.00517.18
8.3.240.0060.00216.79
8.3.230.0110.00716.24
8.3.220.0100.00718.99
8.3.210.0090.00616.46
8.3.200.0060.00416.31
8.3.190.0060.00217.09
8.3.180.0110.00916.66
8.3.170.0120.00618.59
8.3.160.0150.00317.08
8.3.150.0030.01717.29
8.3.140.0000.00818.90
8.3.130.0040.00418.27
8.3.120.0070.00418.92
8.3.110.0160.00020.94
8.3.100.0060.00324.06
8.3.90.0060.00920.08
8.3.80.0030.00618.30
8.3.70.0090.01216.50
8.3.60.0030.01416.38
8.3.50.0120.00818.19
8.3.40.0090.00618.71
8.3.30.0080.00818.85
8.3.20.0070.00020.84
8.3.10.0000.00721.73
8.3.00.0000.00721.86
8.2.290.0050.00320.56
8.2.280.0080.01218.27
8.2.270.0030.01516.94
8.2.260.0070.01116.52
8.2.250.0080.00018.55
8.2.240.0140.00417.33
8.2.230.0050.00322.58
8.2.220.0040.00437.54
8.2.210.0110.00326.77
8.2.200.0030.00618.41
8.2.190.0130.00318.28
8.2.180.0090.00616.50
8.2.170.0070.00722.96
8.2.160.0120.00420.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0030.00619.89
8.2.120.0040.00426.35
8.2.110.0090.00020.32
8.2.100.0060.00617.78
8.2.90.0030.00618.03
8.2.80.0050.00318.16
8.2.70.0000.00817.93
8.2.60.0000.00818.34
8.2.50.0000.01018.10
8.2.40.0000.00719.26
8.2.30.0000.00820.48
8.2.20.0000.00718.12
8.2.10.0050.00219.43
8.2.00.0060.00318.11
8.1.330.0130.00721.79
8.1.320.0100.00916.30
8.1.310.0110.00618.28
8.1.300.0100.01017.89
8.1.290.0030.00618.88
8.1.280.0150.00325.92
8.1.270.0000.00823.95
8.1.260.0090.00026.35
8.1.250.0030.00628.09
8.1.240.0070.00417.36
8.1.230.0000.01122.75
8.1.220.0050.00317.78
8.1.210.0050.00318.77
8.1.200.0090.00017.23
8.1.190.0050.00317.13
8.1.180.0030.00618.10
8.1.170.0040.00418.52
8.1.160.0000.00718.77
8.1.150.0050.00318.87
8.1.140.0000.00719.01
8.1.130.0060.00020.29
8.1.120.0000.00717.29
8.1.110.0040.00417.25
8.1.100.0040.00417.38
8.1.90.0050.00317.37
8.1.80.0020.00517.41
8.1.70.0030.00717.36
8.1.60.0080.00017.39
8.1.50.0030.00617.44
8.1.40.0090.00017.46
8.1.30.0000.00817.45
8.1.20.0060.00617.58
8.1.10.0040.00417.61
8.1.00.0000.00817.34
8.0.300.0000.00719.95
8.0.290.0070.00316.63
8.0.280.0070.00018.43
8.0.270.0050.00217.13
8.0.260.0030.00318.43
8.0.250.0030.00316.98
8.0.240.0000.00716.98
8.0.230.0030.00316.90
8.0.220.0070.00016.80
8.0.210.0070.00016.82
8.0.200.0000.00616.75
8.0.190.0080.00016.78
8.0.180.0030.00516.86
8.0.170.0050.00316.77
8.0.160.0040.00416.81
8.0.150.0050.00316.78
8.0.140.0080.00016.64
8.0.130.0060.00013.18
8.0.120.0040.00416.69
8.0.110.0000.00716.82
8.0.100.0030.00516.76
8.0.90.0070.00016.71
8.0.80.0060.01016.82
8.0.70.0050.00216.86
8.0.60.0080.00016.82
8.0.50.0060.00316.93
8.0.30.0100.00816.80
8.0.20.0090.01317.01
8.0.10.0030.00616.80
8.0.00.0080.01216.75
7.4.330.0050.00016.70
7.4.320.0000.00616.56
7.4.300.0060.00016.41
7.4.290.0030.00316.36
7.4.280.0050.00316.36
7.4.270.0000.00716.47
7.4.260.0000.00716.38
7.4.250.0050.00316.37
7.4.240.0040.00416.34
7.4.230.0040.00416.45
7.4.220.0000.00816.29
7.4.210.0080.00816.39
7.4.200.0000.00716.28
7.4.160.0100.01016.39
7.4.140.0070.01017.86
7.4.130.0150.00416.40
7.4.120.0070.01116.55
7.4.110.0110.00816.67
7.4.100.0130.00316.53
7.4.90.0150.00316.34
7.4.80.0110.01119.39
7.4.70.0030.01716.43
7.4.60.0140.00416.50
7.4.50.0050.00816.37
7.4.40.0120.00916.34
7.4.00.0100.00714.89
7.3.330.0000.00712.96
7.3.320.0030.00313.11
7.3.310.0050.00216.04
7.3.300.0030.00316.21
7.3.290.0000.00716.31
7.3.280.0090.00716.28
7.3.260.0140.00516.39
7.3.240.0080.00916.40
7.3.230.0120.00616.29
7.3.210.0060.01216.37
7.3.200.0100.00716.40
7.3.190.0060.00916.22
7.3.180.0030.01216.48
7.3.170.0100.00716.40
7.3.160.0090.00616.48
7.3.40.0030.00714.71
7.3.30.0060.00914.85
7.3.20.0150.00014.80
7.3.10.0120.00414.77
7.3.00.0060.00614.84
7.2.330.0150.00316.61
7.2.320.0070.01116.46
7.2.310.0100.00716.70
7.2.300.0110.00816.67
7.2.290.0100.00716.64
7.2.170.0060.00614.76
7.2.160.0110.00314.79
7.2.150.0130.00315.23
7.2.140.0120.00315.16
7.2.130.0070.01115.06
7.2.120.0090.00914.90
7.2.110.0070.00714.84
7.2.100.0060.00614.65
7.2.90.0100.00614.87
7.2.80.0150.00015.14
7.2.70.0030.02015.05
7.2.60.0150.00915.16
7.2.50.0140.00914.84
7.2.40.1230.00614.84
7.2.30.0150.00914.89
7.2.20.0070.00714.89
7.2.10.0090.00315.02
7.2.00.0170.00015.04
7.1.280.0040.00914.11
7.1.270.0090.00614.12
7.1.260.0190.00313.77
7.1.250.0120.00013.89

preferences:
37.05 ms | 403 KiB | 5 Q