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('Мужчинам / Носки / Белые', 0, null); 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.0060.01316.74
8.3.50.0120.01022.11
8.3.40.0120.00918.98
8.3.30.0070.00718.70
8.3.20.0000.00820.00
8.3.10.0060.00323.70
8.3.00.0080.00019.55
8.2.180.0100.01018.26
8.2.170.0120.00322.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00019.12
8.2.120.0050.00326.35
8.2.110.0130.01020.25
8.2.100.0050.00517.68
8.2.90.0000.00819.08
8.2.80.0060.00317.97
8.2.70.0050.00517.63
8.2.60.0040.00418.04
8.2.50.0090.00018.07
8.2.40.0040.00422.32
8.2.30.0000.00720.51
8.2.20.0000.00817.75
8.2.10.0080.00017.99
8.2.00.0040.00417.96
8.1.280.0070.01425.92
8.1.270.0060.00320.43
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0100.00723.97
8.1.230.0080.00317.76
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.34
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0040.00418.58
8.1.160.0040.00420.70
8.1.150.0050.00218.86
8.1.140.0040.00419.44
8.1.130.0070.00017.64
8.1.120.0000.00717.40
8.1.110.0070.00017.43
8.1.100.0080.00017.45
8.1.90.0000.00717.32
8.1.80.0030.00517.44
8.1.70.0000.00717.38
8.1.60.0060.00317.60
8.1.50.0040.00417.58
8.1.40.0040.00417.59
8.1.30.0060.00317.66
8.1.20.0040.00417.63
8.1.10.0000.00717.58
8.1.00.0050.00317.59
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.27
8.0.270.0030.00317.18
8.0.260.0060.00017.12
8.0.250.0000.00717.01
8.0.240.0070.00016.86
8.0.230.0000.00717.02
8.0.220.0030.00316.92
8.0.210.0030.00416.93
8.0.200.0040.00416.84
8.0.190.0100.00017.02
8.0.180.0000.00716.82
8.0.170.0040.00416.95
8.0.160.0000.00816.83
8.0.150.0030.00316.89
8.0.140.0000.00716.86
8.0.130.0030.00313.34
8.0.120.0030.00516.91
8.0.110.0040.00416.85
8.0.100.0000.00816.81
8.0.90.0040.00416.91
8.0.80.0000.01416.90
8.0.70.0040.00416.96
8.0.60.0000.00716.95
8.0.50.0000.00716.87
8.0.30.0120.00717.17
8.0.20.0070.01217.40
8.0.10.0000.00716.90
8.0.00.0110.01116.71
7.4.330.0050.00016.67
7.4.320.0030.00316.52
7.4.300.0030.00316.49
7.4.290.0000.00616.56
7.4.280.0030.00616.54
7.4.270.0000.00816.61
7.4.260.0040.00416.60
7.4.250.0070.00016.44
7.4.240.0060.00216.56
7.4.230.0040.00416.67
7.4.220.0040.01416.43
7.4.210.0060.00916.64
7.4.200.0000.00716.40
7.4.160.0110.00516.58
7.4.150.0140.00317.40
7.4.140.0120.00717.86
7.4.130.0060.01116.58
7.4.120.0120.00916.64
7.4.110.0080.00816.65
7.4.100.0070.01416.66
7.4.90.0070.01016.56
7.4.80.0110.00719.39
7.4.70.0080.00916.46
7.4.60.0060.01116.64
7.4.50.0000.01516.53
7.4.40.0130.00416.43
7.4.30.0160.00316.34
7.4.00.0140.00515.05
7.3.330.0050.00013.45
7.3.320.0000.00513.50
7.3.310.0000.00716.30
7.3.300.0030.00316.45
7.3.290.0030.00316.45
7.3.280.0050.01116.42
7.3.270.0110.00717.40
7.3.260.0110.00716.44
7.3.250.0100.00716.42
7.3.240.0060.01116.63
7.3.230.0050.01216.63
7.3.210.0130.00516.41
7.3.200.0090.00916.39
7.3.190.0030.01316.45
7.3.180.0150.00316.68
7.3.170.0120.00616.41
7.3.160.0110.00516.41
7.3.120.0100.01314.63
7.3.110.0100.00714.66
7.3.100.0120.00314.66
7.3.90.0040.00815.13
7.3.80.0060.00914.85
7.3.70.0030.01315.00
7.3.60.0100.00914.82
7.3.50.0060.01014.83
7.3.40.0100.00314.89
7.3.30.0070.00714.75
7.3.20.0040.00816.78
7.3.10.0080.00516.69
7.3.00.0050.00816.64
7.2.330.0130.00316.29
7.2.320.0070.01116.44
7.2.310.0030.01416.42
7.2.300.0110.00716.85
7.2.290.0070.01016.48
7.2.250.0060.01015.24
7.2.240.0060.01014.72
7.2.230.0040.00715.31
7.2.220.0030.01314.68
7.2.210.0030.00614.90
7.2.200.0070.01015.23
7.2.190.0070.01115.11
7.2.180.0070.01015.00
7.2.170.0070.00414.86
7.2.160.0100.00315.02
7.2.150.0060.01016.66
7.2.140.0030.01316.66
7.2.130.0150.00316.70
7.2.120.0110.01216.98
7.2.110.0100.01016.95
7.2.100.0040.01316.57
7.2.90.0070.00616.78
7.2.80.0100.00816.94
7.2.70.0080.00616.87
7.2.60.0110.00116.88
7.2.50.0080.00516.91
7.2.40.0110.00716.93
7.2.30.0070.00816.74
7.2.20.0030.01016.71
7.2.10.0020.01116.97
7.2.00.0160.00417.75
7.1.330.0060.00615.96
7.1.320.0030.01015.98
7.1.310.0030.01015.86
7.1.300.0090.00615.62
7.1.290.0060.00615.51
7.1.280.0040.01215.80
7.1.270.0090.00615.94
7.1.260.0000.01215.57
7.1.250.0050.00915.71
7.1.240.0000.01415.88
7.1.230.0030.01015.92
7.1.220.0100.00715.96
7.1.210.0040.01115.56
7.1.200.0120.00315.80
7.1.190.0070.00715.82
7.1.180.0000.01115.77
7.1.170.0060.00615.71
7.1.160.0000.01415.71
7.1.150.0000.01515.49
7.1.140.0040.00415.90
7.1.130.0070.00715.93
7.1.120.0040.00415.79
7.1.110.0120.00315.78
7.1.100.0100.00516.90
7.1.90.0140.00315.82
7.1.80.0100.00315.80
7.1.70.0060.00416.48
7.1.60.0050.01417.61
7.1.50.0060.00816.44
7.1.40.0030.01015.86
7.1.30.0120.00315.74
7.1.20.0110.00415.51
7.1.10.0060.00315.89
7.1.00.0000.04819.05
7.0.330.0040.01215.40
7.0.320.0040.00815.41
7.0.310.0060.00615.45
7.0.300.0000.00815.43
7.0.290.0100.00315.44
7.0.280.0070.00715.37
7.0.270.0030.01015.39
7.0.260.0040.00415.43
7.0.250.0060.00915.40
7.0.240.0120.00615.62
7.0.230.0120.00415.61
7.0.220.0060.00615.61
7.0.210.0060.00615.46
7.0.200.0020.00616.08
7.0.190.0060.00915.44
7.0.180.0060.00315.50
7.0.170.0060.00615.39
7.0.160.0000.01415.43
7.0.150.0090.00315.52
7.0.140.0120.00315.48
7.0.130.0070.00415.39
7.0.120.0090.00015.34
7.0.110.0040.00815.46
7.0.100.0030.01015.28
7.0.90.0060.00315.39
7.0.80.0120.00315.34
7.0.70.0060.00615.11
7.0.60.0070.03717.61
7.0.50.0120.03816.77
7.0.40.0030.03516.78
7.0.30.0150.04016.75
7.0.20.0140.03316.66
7.0.10.0050.04716.68
7.0.00.0100.04316.91
5.6.400.0060.00913.97
5.6.390.0000.01413.95
5.6.380.0030.00614.73
5.6.370.0040.01214.57
5.6.360.0090.00314.40
5.6.350.0100.00314.30
5.6.340.0040.01114.31
5.6.330.0030.01014.63
5.6.320.0030.01214.30
5.6.310.0030.00914.70
5.6.300.0090.00314.59
5.6.290.0060.00914.16
5.6.280.0060.03617.71
5.6.270.0060.00914.50
5.6.260.0110.00414.29
5.6.250.0060.00313.97
5.6.240.0000.01314.44
5.6.230.0140.00014.13
5.6.220.0000.01314.25
5.6.210.0030.03517.53
5.6.200.0100.03916.26
5.6.190.0050.04917.45
5.6.180.0130.03517.54
5.6.170.0080.03217.43
5.6.160.0050.05017.45
5.6.150.0130.03816.40
5.6.140.0050.04716.37
5.6.130.0070.04416.21
5.6.120.0050.04517.62
5.6.110.0100.03617.75
5.6.100.0070.04417.77
5.6.90.0030.04917.62
5.6.80.0080.04417.22
5.6.70.0070.00414.39
5.6.60.0090.00014.31
5.6.50.0050.00514.45
5.6.40.0070.00713.92
5.6.30.0070.00714.19
5.6.20.0000.01614.26
5.6.10.0030.00614.10
5.6.00.0070.00714.17
5.5.380.0070.00714.41
5.5.370.0080.00614.34
5.5.360.0030.01014.09
5.5.350.0180.04017.38
5.5.340.0070.04415.94
5.5.330.0050.03717.29
5.5.320.0180.02217.33
5.5.310.0210.03617.25
5.5.300.0030.02816.16
5.5.290.0050.04516.17
5.5.280.0090.03617.66
5.5.270.0070.02917.32
5.5.260.0020.02717.43
5.5.250.0050.02617.54
5.5.240.2120.02217.25
5.5.230.0060.00613.90
5.5.220.0060.00914.25
5.5.210.0000.01213.97
5.5.200.0090.00914.07
5.5.190.0000.01514.16
5.5.180.0030.01114.28
5.5.170.0100.00313.93
5.5.160.0120.00314.01
5.5.150.0030.00714.07
5.5.140.0030.00514.41
5.5.130.0030.00614.39
5.5.120.0080.00514.38
5.5.110.0030.01214.25
5.5.100.0060.01014.14
5.5.90.0060.01014.08
5.5.80.0060.00314.33
5.5.70.0100.01013.99
5.5.60.0090.00913.90
5.5.50.0090.00614.13
5.5.40.0000.01514.17
5.5.30.0070.00714.43
5.5.20.0070.00314.21
5.5.10.0080.00613.62
5.5.00.0060.01313.88

preferences:
54.23 ms | 401 KiB | 5 Q