3v4l.org

run code in 300+ PHP versions simultaneously
<?php $X = '{"a":"a","b":"b","c":"c","d":"d","e":"e","f":"f9","g":"g2","h":"h1"}'; print_r((fn()=>array_keys(json_decode($X,1)))()); print_r((fn()=>array_values(json_decode($X,1)))());

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.1.70.0040.00417.45
8.1.60.0040.00417.57
8.1.50.0030.00517.53
8.1.40.0030.00517.52
8.1.30.0090.00317.51
8.1.20.0040.00417.50
8.1.10.0000.00717.48
8.1.00.0060.00317.39
8.0.200.0000.00716.97
8.0.190.0030.00316.91
8.0.180.0080.00016.92
8.0.170.0090.00016.79
8.0.160.0040.00416.90
8.0.150.0030.00316.84
8.0.140.0030.00316.90
8.0.130.0000.00713.25
8.0.120.0040.00416.88
8.0.110.0040.00416.88
8.0.100.0000.00716.71
8.0.90.0040.00416.71
8.0.80.0120.00316.84
8.0.70.0000.00716.69
8.0.60.0000.00716.84
8.0.50.0040.00416.76
8.0.30.0030.01316.86
8.0.20.0060.01216.78
8.0.10.0040.00416.86
8.0.00.0060.01216.91
7.4.300.0030.00316.59
7.4.290.0050.00316.54
7.4.280.0080.00016.54
7.4.270.0040.00416.52
7.4.260.0030.00313.28
7.4.250.0000.00716.45
7.4.240.0010.00616.58
7.4.230.0030.00316.68
7.4.220.0000.00716.69
7.4.210.0010.01516.55
7.4.200.0000.00716.30
7.4.140.0120.00617.86
7.4.130.0120.00616.36
7.4.120.0100.00716.71
7.4.110.0140.00316.34
7.4.100.0030.01516.57
7.4.90.0160.00316.56
7.4.80.0080.00819.39
7.4.70.0150.00316.38
7.4.60.0130.00616.69
7.4.50.0090.00616.40
7.4.40.0130.01016.54
7.3.330.0040.00416.21
7.3.320.0000.00513.21
7.3.310.0070.00016.18
7.3.300.0030.00316.03
7.3.290.0000.00616.07
7.3.260.0080.00916.24
7.3.240.0100.00716.24
7.3.230.0120.00616.41
7.3.210.0060.01216.33
7.3.200.0060.01316.23
7.3.190.0070.01016.40
7.3.180.0070.01516.50
7.3.170.0100.01016.21
7.3.160.0120.00616.22
7.3.90.0030.01014.50
7.3.80.0090.00914.64
7.3.70.0110.00314.47
7.3.60.0100.00314.42
7.3.50.0070.00714.49
7.3.40.0080.00614.51
7.3.30.0180.00014.47
7.3.20.0100.00614.72
7.3.10.0120.00314.55
7.3.00.0130.00714.70
7.2.330.0000.01816.05
7.2.320.0100.01016.26
7.2.310.0060.01316.41
7.2.300.0150.00616.15
7.2.290.0140.00316.33
7.2.220.0140.00614.75
7.2.210.0060.01314.96
7.2.200.0150.00414.68
7.2.190.0040.01114.71
7.2.180.0070.00714.88
7.2.170.0100.00714.89
7.2.160.0130.00614.65
7.2.150.0030.01214.89
7.2.140.0110.00314.91
7.2.130.0120.00914.93
7.2.120.0110.00714.93
7.2.110.0170.00314.89
7.2.100.0110.00614.74
7.2.90.0090.00615.05
7.2.80.0130.00715.06
7.2.70.0150.00014.83
7.2.60.0150.00414.98
7.2.50.0140.00414.85
7.2.40.0150.00614.94
7.2.30.0100.01014.66
7.2.20.0070.01015.05
7.2.10.0030.01414.81
7.2.00.0200.01414.57
7.1.320.0100.00313.45
7.1.310.0040.01413.57
7.1.300.0060.00913.71
7.1.290.0000.01513.67
7.1.280.0140.00813.95
7.1.270.0070.00613.69
7.1.260.0130.00613.65
7.1.250.0160.00313.79

preferences:
22.24 ms | 406 KiB | 5 Q