3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nodes = array(); $parents = array(); function fillCategory($s, $id, $parentId){ $p = strpos('/', $s); $s1 = substr(0, $p); $s2 = substr($p); if(empty($parentId)){ $parents[$s] = $id; }else{ $parentId = $parents[$s]; } $nodes[] = array($s, $id, $parentId); $id += 1; if(isset($s2)){ fillCategory($s, $id, $parentId); } } fillCategory('Мужчинам / Носки / Белые'); var_dump($nodes);

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.0100.00716.50
8.3.50.0120.00918.32
8.3.40.0150.00018.83
8.3.30.0040.01118.67
8.3.20.0070.00020.29
8.3.10.0000.00823.28
8.3.00.0040.00419.79
8.2.180.0190.00016.50
8.2.170.0110.00322.96
8.2.160.0140.00020.53
8.2.150.0090.00024.18
8.2.140.0030.00524.66
8.2.130.0000.00819.12
8.2.120.0040.00426.35
8.2.110.0110.00722.11
8.2.100.0040.00817.80
8.2.90.0040.00419.23
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0030.00517.78
8.2.50.0030.00618.07
8.2.40.0000.00922.29
8.2.30.0040.00420.63
8.2.20.0050.00217.58
8.2.10.0000.00718.02
8.2.00.0000.00718.09
8.1.280.0100.00625.92
8.1.270.0040.00420.07
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0120.00017.71
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0050.00317.13
8.1.180.0000.00718.10
8.1.170.0040.00418.52
8.1.160.0040.00420.61
8.1.150.0070.00018.90
8.1.140.0030.00519.57
8.1.130.0030.00317.58
8.1.120.0070.00017.32
8.1.110.0040.00417.38
8.1.100.0000.00717.44
8.1.90.0000.00717.32
8.1.80.0000.00817.40
8.1.70.0000.00717.33
8.1.60.0000.00717.52
8.1.50.0030.00617.43
8.1.40.0030.00517.47
8.1.30.0030.00617.64
8.1.20.0030.00517.54
8.1.10.0050.00317.58
8.1.00.0050.00317.59
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.42
8.0.270.0030.00317.13
8.0.260.0030.00317.23
8.0.250.0030.00316.92
8.0.240.0070.00016.91
8.0.230.0000.00716.95
8.0.220.0040.00416.93
8.0.210.0070.00016.89
8.0.200.0060.00317.00
8.0.190.0040.00716.96
8.0.180.0040.00416.96
8.0.170.0030.00616.93
8.0.160.0000.00816.98
8.0.150.0050.00216.89
8.0.140.0040.00416.88
8.0.130.0030.00313.39
8.0.120.0040.00416.93
8.0.110.0050.00316.99
8.0.100.0040.00416.91
8.0.90.0000.00716.71
8.0.80.0040.01116.96
8.0.70.0040.00416.87
8.0.60.0030.00516.89
8.0.50.0040.00416.89
8.0.30.0100.00817.28
8.0.20.0110.00917.40
8.0.10.0070.00016.88
8.0.00.0120.00816.90
7.4.330.0000.00516.80
7.4.320.0030.00316.39
7.4.300.0000.00616.45
7.4.290.0040.00416.48
7.4.280.0070.00416.43
7.4.270.0070.00016.68
7.4.260.0000.00816.61
7.4.250.0000.00716.56
7.4.240.0020.00516.56
7.4.230.0000.00716.66
7.4.220.0060.01216.57
7.4.210.0090.00716.68
7.4.200.0030.00316.71
7.4.160.0100.01316.68
7.4.150.0070.01017.40
7.4.140.0070.01517.86
7.4.130.0110.00816.50
7.4.120.0090.00916.52
7.4.110.0070.01016.47
7.4.100.0070.01116.54
7.4.90.0110.00716.70
7.4.80.0090.00919.39
7.4.70.0140.00316.48
7.4.60.0030.01316.66
7.4.50.0030.00716.32
7.4.40.0100.00716.63
7.4.30.0060.01516.55
7.4.00.0130.00314.57
7.3.330.0000.00513.32
7.3.320.0030.00313.16
7.3.310.0000.00716.17
7.3.300.0070.00016.19
7.3.290.0030.00316.18
7.3.280.0130.00416.32
7.3.270.0130.00317.40
7.3.260.0070.01016.28
7.3.250.0100.00616.39
7.3.240.0050.01316.32
7.3.230.0140.00416.39
7.3.210.0180.00016.45
7.3.200.0130.00316.34
7.3.190.0060.00916.39
7.3.180.0100.00616.36
7.3.170.0140.00316.27
7.3.160.0060.00916.22
7.3.10.0000.01116.37
7.3.00.0040.00716.62
7.2.330.0140.00316.48
7.2.320.0070.01716.69
7.2.310.0100.00616.56
7.2.300.0030.01916.57
7.2.290.0110.00616.56
7.2.130.0060.01216.57
7.2.120.0040.00816.89
7.2.110.0030.00716.65
7.2.100.0060.00616.51
7.2.90.0040.01116.89
7.2.80.0060.00616.79
7.2.70.0070.00716.85
7.2.60.0080.00716.54
7.2.50.0000.01116.85
7.2.40.0090.00316.84
7.2.30.0000.00916.80
7.2.20.0100.00316.54
7.2.10.0110.00416.70
7.2.00.0020.01118.06
7.1.250.0110.00315.53
7.1.200.0090.00315.50
7.1.100.0170.00617.86
7.1.70.0040.01516.95
7.1.60.0060.01619.52
7.1.50.0040.01816.89
7.1.00.0000.07722.57
7.0.200.0060.00316.46
7.0.60.0070.06020.04
7.0.50.0000.09017.85
7.0.40.0030.06720.27
7.0.30.0130.05020.23
7.0.20.0230.04720.15
7.0.10.0100.08320.07
7.0.00.0070.08320.32
5.6.280.0070.06020.93
5.6.210.0030.07720.57
5.6.200.0030.04318.26
5.6.190.0130.08020.52
5.6.180.0200.04720.61
5.6.170.0270.04020.56
5.6.160.0130.07320.69
5.6.150.0030.04318.23
5.6.140.0130.07718.19
5.6.130.0000.08718.18
5.6.120.0170.07721.00
5.6.110.0070.07720.90
5.6.100.0070.07020.98
5.6.90.0170.07320.98
5.6.80.0130.07320.43
5.5.350.0370.05320.32
5.5.340.0100.07318.08
5.5.330.0070.08320.21
5.5.320.0400.04020.27
5.5.310.0200.04320.28
5.5.300.0030.03718.04
5.5.290.0100.07017.96
5.5.280.0000.09020.85
5.5.270.0070.07720.74
5.5.260.0100.04020.64
5.5.250.0030.09320.58
5.5.240.4370.03320.24

preferences:
51.12 ms | 401 KiB | 5 Q