3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tokens = token_get_all(' <?php /** * перед добавлением инфоблока * * даем права на инфоблоки на чтение по умолчанию */ AddEventHandler("iblock", "OnBeforeIBlockAdd", "iblock_OnBeforeIBlockAdd_FixIBlockPermissions"); function iblock_OnBeforeIBlockAdd_FixIBlockPermissions(&$arFields) { Bitrix\Main\Diag\Debug::writeToFile("iblock_OnBeforeIBlockAdd_FixIBlockPermissions", "", "iblock_OnBeforeIBlockAdd_FixIBlockPermissions.txt"); $rsGroups = CGroup::GetList(($by = "c_sort"), ($order = "desc"), $filter); while ($arGroup = $rsGroups->Fetch()) { if ($arGroup[\'ANONYMOUS\'] == \'Y\') { $group_id = $arGroup[\'ID\']; break; } } $arFields[\'GROUP_ID\'][$group_id] = "R"; } '); print_r($tokens);

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.3.60.0150.00618.43
8.3.50.0080.00817.87
8.3.40.0090.00918.68
8.3.30.0060.01018.68
8.3.20.0040.00420.21
8.3.10.0040.00423.52
8.3.00.0040.00419.67
8.2.180.0030.01016.50
8.2.170.0160.00618.58
8.2.160.0070.00722.96
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0060.00926.16
8.2.120.0040.00421.05
8.2.110.0030.01019.09
8.2.100.0140.00017.84
8.2.90.0030.00617.78
8.2.80.0050.00320.40
8.2.70.0090.00017.80
8.2.60.0000.00917.93
8.2.50.0050.00218.10
8.2.40.0050.00220.36
8.2.30.0040.00419.28
8.2.20.0040.00417.90
8.2.10.0040.00417.98
8.2.00.0040.00418.09
8.1.280.0070.01125.92
8.1.270.0040.00422.10
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00019.01
8.1.230.0110.00020.80
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0050.00317.00
8.1.190.0030.00617.53
8.1.180.0060.00318.10
8.1.170.0040.00418.52
8.1.160.0000.00718.82
8.1.150.0000.00720.21
8.1.140.0000.00717.75
8.1.130.0000.00718.98
8.1.120.0030.00317.44
8.1.110.0040.00417.36
8.1.100.0110.00017.49
8.1.90.0000.00717.41
8.1.80.0030.00517.46
8.1.70.0090.00017.33
8.1.60.0000.00817.54
8.1.50.0000.00817.34
8.1.40.0030.00617.50
8.1.30.0050.00217.66
8.1.20.0040.00417.50
8.1.10.0000.00817.50
8.1.00.0050.00317.29
8.0.300.0040.00420.09
8.0.290.0050.00316.75
8.0.280.0030.00418.42
8.0.270.0030.00516.86
8.0.260.0030.00516.80
8.0.250.0030.00316.94
8.0.240.0030.00316.91
8.0.230.0110.00016.94
8.0.220.0040.00416.76
8.0.210.0030.00316.84
8.0.200.0070.00016.95
8.0.190.0040.00416.90
8.0.180.0040.00416.79
8.0.170.0000.00816.75
8.0.160.0040.00416.92
8.0.150.0000.00716.85
8.0.140.0000.00816.82
8.0.130.0060.00013.32
8.0.120.0040.00416.89
8.0.110.0020.00516.89
8.0.100.0070.00016.86
8.0.90.0040.00416.93
8.0.80.0060.00916.83
8.0.70.0050.00216.88
8.0.60.0080.00016.76
8.0.50.0070.00016.72
8.0.30.0090.00916.93
8.0.20.0090.01017.40
8.0.10.0020.00516.99
8.0.00.0070.01216.57
7.4.330.0000.00515.55
7.4.320.0030.00316.63
7.4.300.0020.00516.41
7.4.290.0000.00716.46
7.4.280.0050.00316.59
7.4.270.0000.00716.48
7.4.260.0030.00316.41
7.4.250.0030.00316.59
7.4.240.0030.00316.48
7.4.230.0030.00316.50
7.4.220.0030.00516.57
7.4.210.0110.00516.51
7.4.200.0030.00416.32
7.4.150.0090.00917.40
7.4.140.0120.00917.86
7.4.130.0130.00316.55
7.4.120.0100.00716.41
7.4.110.0100.00616.47
7.4.100.0100.00716.34
7.4.90.0060.01516.46
7.4.80.0090.01119.39
7.4.70.0150.00616.60
7.4.60.0120.00816.45
7.4.50.0140.00316.57
7.4.40.0060.00916.55
7.4.00.0110.00315.12
7.3.330.0000.00513.02
7.3.320.0030.00313.09
7.3.310.0050.00216.20
7.3.300.0000.00716.09
7.3.290.0100.01016.21
7.3.280.0120.00316.17
7.3.270.0090.01517.40
7.3.260.0130.00516.22
7.3.250.0120.00916.23
7.3.240.0090.00816.40
7.3.230.0140.00316.22
7.3.210.0130.00616.48
7.3.200.0030.01316.19
7.3.190.0060.01216.18
7.3.180.0130.00316.17
7.3.170.0060.00916.16
7.3.160.0090.00916.24
7.2.330.0100.01016.77
7.2.320.0100.00716.70
7.2.310.0100.00716.47
7.2.300.0060.01116.63
7.2.290.0110.01116.68
7.2.60.0040.00916.89
7.2.20.0030.01619.66
7.2.10.0150.00419.61
7.2.00.0030.01619.45
7.1.200.0080.00615.72
7.1.140.0060.01218.31
7.1.130.0100.00618.72
7.1.120.0060.01218.70
7.1.110.0030.01317.93
7.1.100.0060.00917.89
7.1.90.0100.00318.19
7.1.80.0080.00417.66
7.1.70.0030.01316.80
7.1.60.0200.00634.96
7.1.50.0120.02234.60
7.1.40.0240.01034.29
7.1.30.0160.02034.41
7.1.20.0220.00634.38
7.1.10.0100.00616.54
7.1.00.0030.01416.68

preferences:
63.52 ms | 400 KiB | 5 Q