3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "pentrose_50_rafhan_c_kgs" => 100, "pentrose_50_rafhan_c_issued_kgs" => 300, "pentrose_50_rafhan_c_rskg" => 99.1, "pentrose_50_rafhan_c_amount" => 29730, ]; $formattedArray = []; array_walk($array, function($value, $key) use (&$formattedArray) { list($prefix, $newKey) = explode('_c_', $key); $formattedArray[$prefix][$newKey] = $value; }); var_dump($formattedArray);

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.140.0140.00717.70
8.4.130.0110.00918.70
8.4.120.0110.00924.34
8.4.110.0070.00918.54
8.4.100.0080.01218.74
8.4.90.0050.00320.77
8.4.80.0110.00918.65
8.4.70.0090.00618.14
8.4.60.0110.00919.03
8.4.50.0090.01118.79
8.4.40.0110.00817.59
8.4.30.0070.01418.59
8.4.20.0080.00018.00
8.4.10.0030.00622.16
8.3.270.0140.00516.52
8.3.260.0130.00716.61
8.3.250.0080.01118.82
8.3.240.0150.00617.18
8.3.230.0130.00616.49
8.3.220.0100.00819.16
8.3.210.0070.01116.70
8.3.200.0060.00316.74
8.3.190.0090.00917.11
8.3.180.0110.00817.13
8.3.170.0150.00420.80
8.3.160.0110.00716.73
8.3.150.0120.00617.16
8.3.140.0130.00616.57
8.3.130.0040.00418.52
8.3.120.0060.00318.86
8.3.110.0040.00416.74
8.3.100.0100.00016.84
8.3.90.0080.00026.77
8.3.80.0000.01116.63
8.3.70.0110.00416.75
8.3.60.0120.00318.31
8.3.50.0110.00720.32
8.3.40.0070.01420.17
8.3.30.0070.00718.76
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0080.00026.16
8.2.290.0090.01020.38
8.2.280.0100.00618.61
8.2.270.0120.00617.26
8.2.260.0160.00318.27
8.2.250.0030.00516.45
8.2.240.0040.00416.63
8.2.230.0060.00320.94
8.2.220.0030.00624.06
8.2.210.0030.00526.77
8.2.200.0060.00316.75
8.2.190.0070.00716.58
8.2.180.0120.00625.92
8.2.170.0070.00718.93
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00419.66
8.2.110.0050.00520.30
8.2.100.0090.00317.79
8.2.90.0060.00317.71
8.2.80.0040.00418.76
8.2.70.0000.00817.62
8.2.60.0000.00817.63
8.2.50.0040.00417.98
8.2.40.0050.00218.34
8.2.30.0050.00318.11
8.2.20.0000.00819.31
8.2.10.0060.00318.06
8.2.00.0000.00719.29
8.1.330.0100.00821.66
8.1.320.0090.01017.87
8.1.310.0040.00415.94
8.1.300.0030.00616.23
8.1.290.0050.00530.84
8.1.280.0000.01525.92
8.1.270.0030.00524.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.04
8.1.230.0070.00423.90
8.1.220.0040.00418.75
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0030.00617.23
8.1.180.0030.00518.10
8.1.170.0060.00317.62
8.1.160.0060.00318.94
8.1.150.0000.00718.52
8.1.140.0030.00617.32
8.1.130.0030.00318.94
8.1.120.0000.00717.50
8.1.110.0030.00517.43
8.1.100.0070.00217.38
8.1.90.0150.00017.30
8.1.80.0040.01117.38
8.1.70.0120.00317.29
8.1.60.0120.00617.41
8.1.50.0060.01117.46
8.1.40.0130.00417.32
8.1.30.0180.00017.52
8.1.20.0150.00317.57
8.1.10.0120.00617.39
8.1.00.0140.00517.41
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0000.00718.45
8.0.270.0000.00716.72
8.0.260.0000.00618.52
8.0.250.0000.00716.86
8.0.240.0050.00216.88
8.0.230.0070.00316.83
8.0.220.0050.01016.72
8.0.210.0120.00616.77
8.0.200.0160.00016.80
8.0.190.0000.01516.84
8.0.180.0150.00016.66
8.0.170.0050.00916.71
8.0.160.0150.00016.85
8.0.150.0040.01116.70
8.0.140.0140.00016.69
8.0.130.0110.00416.74
8.0.120.0070.00716.81
8.0.110.0090.00516.86
8.0.100.0050.01016.79
8.0.90.0110.00416.74
8.0.80.0050.00916.79
8.0.70.0110.00416.77
8.0.60.0150.00016.68
8.0.50.0110.00416.73
8.0.30.0100.00516.72
8.0.20.0110.00416.74
8.0.10.0110.00416.92
7.4.330.0000.00515.55
7.4.320.0030.00316.66
7.4.300.0120.00416.28
7.4.290.0110.00416.52
7.4.280.0160.00016.55
7.4.270.0080.00816.50
7.4.260.0130.00316.38
7.4.250.0150.00016.37
7.4.240.0110.00416.39
7.4.230.0050.01116.44
7.4.220.0110.00316.37
7.4.210.0050.00816.45
7.4.200.0140.00016.43
7.4.190.0030.01116.58
7.4.180.0110.00316.39
7.4.160.0090.00616.50
7.4.150.0110.00416.29
7.4.140.0120.00316.39
7.4.130.0110.00416.52
7.4.120.0050.00916.53
7.4.110.0140.00016.39
7.4.100.0080.00616.38
7.4.90.0100.00516.34
7.4.80.0100.00516.29
7.4.70.0140.00016.36
7.4.60.0110.00316.31
7.4.50.0100.00316.27
7.4.40.0100.00316.30
7.4.30.0140.00016.25
7.4.20.0030.01016.39
7.4.10.0110.00316.27
7.4.00.0030.00316.34

preferences:
129.31 ms | 403 KiB | 5 Q