3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '{ "46ffacdf-8009-4e7f-9076-1f7f59b152ee": { "variations": { "0": { "_value": { "value": "24,73" }, "_sku": { "value": "79" } } }, "selected": { }, "values": { "0": { } }, "default_variant": "0" }, "48a14646-9b57-44eb-98bc-9c34139bfcd6": { "0": { "file": "images\/237.jpg", "title": "", "link": "", "target": "0", "rel": "" } }, "fff28767-8e69-4c58-ac8b-9ce290c38548": { "0": { "value": "" } }, "8056b532-4837-4514-9d20-6399215a93d9": { "value": "1" } }'; $string = json_decode($string, true, 512, JSON_THROW_ON_ERROR); foreach ($string as $item){ if (isset($item['variations'][0]['_value']['value'])) $value = $item['variations'][0]['_value']['value']; if (isset($item[0]['file'])) $file = $item[0]['file']; } echo $value; echo "\n"; echo $file;

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.90.0130.00416.86
8.5.80.0050.00318.61
8.5.70.0110.00916.93
8.5.60.0110.01016.73
8.5.50.0050.00218.32
8.5.30.0080.01019.64
8.5.20.0110.00619.63
8.5.10.0050.00516.80
8.5.00.0130.01020.09
8.4.240.0110.01119.60
8.4.230.0090.01119.68
8.4.220.0130.00819.52
8.4.210.0150.00721.27
8.4.180.0150.00719.53
8.4.170.0110.01123.77
8.4.160.0100.01123.69
8.4.150.0090.00616.83
8.4.140.0130.00817.64
8.4.130.0080.00217.36
8.4.120.0110.00420.73
8.4.110.0080.00122.31
8.4.100.0130.00617.72
8.4.90.0120.00720.66
8.4.80.0070.00418.58
8.4.70.0040.00318.96
8.4.60.0130.00718.81
8.4.50.0060.00318.78
8.4.40.0040.00717.59
8.4.30.0100.00020.63
8.4.20.0160.00718.78
8.4.10.0090.00019.56
8.3.330.0080.01118.58
8.3.320.0110.00818.60
8.3.310.0100.00818.66
8.3.300.0090.01120.82
8.3.290.0130.00820.80
8.3.280.0130.00718.54
8.3.270.0130.00716.72
8.3.260.0140.00816.52
8.3.250.0050.00319.14
8.3.240.0140.00516.29
8.3.230.0080.00316.85
8.3.220.0040.00518.90
8.3.210.0120.00716.62
8.3.200.0040.00516.51
8.3.190.0080.00917.14
8.3.180.0100.00919.01
8.3.170.0050.00318.50
8.3.160.0000.00717.30
8.3.150.0120.00616.66
8.3.140.0120.00620.64
8.3.130.0050.00318.15
8.3.120.0060.00320.88
8.3.110.0040.00416.62
8.3.100.0030.00624.06
8.3.90.0050.00326.77
8.3.80.0070.00319.36
8.3.70.0090.00918.39
8.3.60.0110.00416.50
8.3.50.0110.00417.98
8.3.40.0140.00318.66
8.3.30.0090.00918.80
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.320.0140.00618.13
8.2.310.0050.00618.23
8.2.300.0110.01018.98
8.2.290.0120.00720.65
8.2.280.0120.00718.14
8.2.270.0110.00716.92
8.2.260.0000.00816.48
8.2.250.0090.00618.32
8.2.240.0000.00817.20
8.2.230.0070.00320.94
8.2.220.0080.00037.54
8.2.210.0030.00526.77
8.2.200.0070.00318.88
8.2.190.0150.00318.16
8.2.180.0070.01125.92
8.2.170.0100.00719.14
8.2.160.0000.01722.96
8.2.150.0030.00525.66
8.2.140.0020.00524.66
8.2.130.0070.00026.16
8.2.120.0090.00026.16
8.2.110.0040.00420.35
8.2.100.0030.00620.49
8.1.340.0130.00621.51
8.1.330.0060.00422.22
8.1.320.0080.01217.70
8.1.310.0110.00716.29
8.1.300.0060.00316.26
8.1.290.0060.00330.84
8.1.280.0140.00325.92
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00318.68
8.1.230.0040.00418.57
7.4.160.0180.00616.62

preferences:
117.84 ms | 889 KiB | 5 Q