3v4l.org

run code in 300+ PHP versions simultaneously
<?php class file_Manager extends BigApiClientModule { protected $name = 'File '; protected $version = '0.111'; private $files = []; public function output($node) { $this->recursive_hash('/'); return json_encode($this->files); } private function recursive_hash($full_dir='') { $return = array(); if ($full_dir == '') { $full_dir = ''; } $d = dir($full_dir); while (false !== ($entry = $d->read())) { if ($entry == '.' or $entry == '..') continue; $file = $full_dir.$entry; if (is_dir($file)) { $return[] = $this->recursive_hash($full_dir); } $this->files[] = $file; } return $return; } } ?>

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.40.0100.00718.84
8.3.30.0070.00720.03
8.3.20.0040.00420.40
8.3.10.0040.00421.09
8.3.00.0040.00423.48
8.2.170.0070.01322.96
8.2.160.0130.00020.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0100.00019.23
8.2.110.0090.00020.98
8.2.100.0040.00718.03
8.2.90.0070.00319.21
8.2.80.0060.00317.97
8.2.70.0050.00517.63
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0030.00620.29
8.2.30.0040.00419.37
8.2.20.0050.00217.74
8.2.10.0050.00317.66
8.2.00.0060.00317.82
8.1.270.0080.00022.07
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00421.05
8.1.230.0080.00620.25
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0090.00017.48
8.1.190.0060.00317.23
8.1.180.0060.00318.10
8.1.170.0000.00818.65
8.1.160.0050.00222.20
8.1.150.0040.00418.52
8.1.140.0040.00417.32
8.1.130.0050.00217.82
8.1.120.0030.00317.43
8.1.110.0000.00817.41
8.1.100.0040.00417.30
8.1.90.0000.00717.39
8.1.80.0050.00517.38
8.1.70.0070.00017.37
8.1.60.0000.00817.43
8.1.50.0000.00817.32
8.1.40.0000.00817.39
8.1.30.0030.00517.60
8.1.20.0000.00817.57
8.1.10.0040.00417.39
8.1.00.0000.00717.49
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0030.00318.42
8.0.270.0060.00317.34
8.0.260.0000.00716.91
8.0.250.0070.00016.93
8.0.240.0060.00317.05
8.0.230.0000.00716.98
8.0.220.0030.00316.99
8.0.210.0040.00416.99
8.0.200.0060.00017.01
8.0.190.0030.00517.05
8.0.180.0070.00016.99
8.0.170.0000.00716.96
8.0.160.0030.00316.95
8.0.150.0040.00416.88
8.0.140.0030.00616.83
8.0.130.0050.00013.42
8.0.120.0040.00415.14
8.0.110.0040.00315.14
8.0.100.0090.00015.07
8.0.90.0040.00515.08
8.0.80.0100.00315.20
8.0.70.0050.00315.17
8.0.60.0060.00215.14
8.0.50.0040.00415.11
8.0.30.0100.00515.82
8.0.20.0100.00516.08
8.0.10.0040.00515.28
8.0.00.0060.00715.70
7.4.330.0000.00415.04
7.4.320.0000.00716.46
7.4.300.0030.00316.51
7.4.290.0000.00716.32
7.4.280.0050.00216.62
7.4.270.0070.00016.46
7.4.260.0070.00013.23
7.4.250.0050.00214.86
7.4.240.0070.00414.82
7.4.230.0080.00314.78
7.4.220.0080.00914.94
7.4.210.0070.00915.87
7.4.200.0060.00414.79
7.4.190.0040.00614.90
7.4.180.0060.00013.34
7.4.160.0060.00514.83
7.4.150.0100.00215.31
7.4.140.0070.00716.29
7.4.130.0090.00715.42
7.4.120.0060.00715.42
7.4.110.0090.00514.94
7.4.100.0090.00414.83
7.4.90.0040.00914.86
7.4.80.0080.00816.27
7.4.70.0060.00614.94
7.4.60.0070.00514.88
7.4.50.0000.00814.83
7.4.40.0060.00517.92
7.4.30.0090.00214.77
7.4.20.0040.00213.07
7.4.10.0070.00013.32
7.4.00.0040.00614.21
7.3.330.0050.00013.27
7.3.320.0000.00513.13
7.3.310.0010.00514.89
7.3.300.0000.00714.67
7.3.290.0050.00514.71
7.3.280.0090.00815.58
7.3.270.0070.00715.28
7.3.260.0100.00816.97
7.3.250.0100.00515.25
7.3.240.0050.00714.80
7.3.230.0040.00914.77
7.3.220.0030.00513.32
7.3.210.0120.00314.70
7.3.200.0090.00516.26
7.3.190.0070.00614.79
7.3.180.0080.00414.80
7.3.170.0070.00414.78
7.3.160.0080.00514.84
7.3.150.0060.00013.11
7.3.140.0030.00313.33
7.3.130.0030.00313.06
7.3.120.0030.00713.80
7.3.110.0030.00313.18
7.3.100.0030.00313.15
7.3.90.0040.00213.51
7.3.80.0030.00313.12
7.3.70.0060.00013.23
7.3.60.0060.00013.38
7.3.50.0070.00013.37
7.3.40.0060.00013.44
7.3.30.0070.00013.50
7.3.20.0000.00614.97
7.3.10.0000.00714.96
7.3.00.0040.00215.19
7.2.340.0060.00813.06
7.2.330.0130.00514.58
7.2.320.0130.00414.92
7.2.310.0110.00314.83
7.2.300.0080.00714.80
7.2.290.0120.00514.82
7.2.280.0120.00013.04
7.2.270.0080.00413.06
7.2.260.0080.00413.20
7.2.250.0120.00012.93
7.2.240.0000.01213.19
7.2.230.0060.00613.16
7.2.220.0130.00013.23
7.2.210.0120.00013.06
7.2.200.0130.00013.38
7.2.190.0120.00013.19
7.2.180.0090.00413.34
7.2.170.0100.00213.35
7.2.160.0080.00413.22
7.2.150.0130.00015.13
7.2.140.0130.00014.98
7.2.130.0080.00415.34
7.2.120.0110.00315.13
7.2.110.0140.00015.04
7.2.100.0090.00415.30
7.2.90.0090.00315.16
7.2.80.0080.00415.09
7.2.70.0060.00615.05
7.2.60.0070.00716.03
7.2.50.0080.00515.10
7.2.40.0100.00315.23
7.2.30.0100.00315.10
7.2.20.0000.01315.38
7.2.10.0090.00515.31
7.2.00.0060.00615.23
7.1.330.0100.00314.22
7.1.320.0090.00314.12
7.1.310.0090.00214.10
7.1.300.0080.00314.29
7.1.290.0100.00214.10
7.1.280.0060.00514.16
7.1.270.0110.00014.22
7.1.260.0110.00014.28
7.1.250.0110.00013.96
7.1.240.0000.01113.98
7.1.230.0080.00313.99
7.1.220.0060.00614.03
7.1.210.0000.01214.21
7.1.200.0020.01014.93
7.1.190.0120.00014.07
7.1.180.0110.00013.97
7.1.170.0000.01113.93
7.1.160.0100.00213.90
7.1.150.0120.00014.01
7.1.140.0090.00313.88
7.1.130.0120.00014.05
7.1.120.0090.00214.01
7.1.110.0040.00814.03
7.1.100.0100.00313.87
7.1.90.0120.00013.95
7.1.80.0100.00214.14
7.1.70.0100.00215.29
7.1.60.0090.00516.55
7.1.50.0140.00315.54
7.1.40.0000.01214.13
7.1.30.0100.00214.12
7.1.20.0070.00514.07
7.1.10.0090.00314.07
7.1.00.0030.02118.14
7.0.330.0000.01114.02
7.0.320.0080.00313.91
7.0.310.0050.00513.90
7.0.300.0120.00014.03
7.0.290.0100.00313.98
7.0.280.0090.00314.01
7.0.270.0120.00013.91
7.0.260.0110.00013.90
7.0.250.0120.00014.14
7.0.240.0120.00014.19
7.0.230.0080.00414.27
7.0.220.0060.00614.11
7.0.210.0080.00413.96
7.0.200.0060.00315.46
7.0.190.0110.00014.14
7.0.180.0000.01114.20
7.0.170.0080.00414.18
7.0.160.0090.00314.00
7.0.150.0090.00314.00
7.0.140.0050.03818.00
7.0.130.0070.00414.14
7.0.120.0090.00214.04
7.0.110.0090.00213.93
7.0.100.0100.00213.92
7.0.90.0230.03016.98
7.0.80.0330.04016.99
7.0.70.0330.04017.04
7.0.60.0350.04016.93
7.0.50.0140.02817.09
7.0.40.0070.02517.03
7.0.30.0090.04017.06
7.0.20.0110.03916.97
7.0.10.0070.04417.03
7.0.00.0090.04316.97
5.6.400.0050.00512.46
5.6.390.0070.00412.44
5.6.380.0110.00012.49
5.6.370.0090.00312.61
5.6.360.0080.00312.58
5.6.350.0090.00212.59
5.6.340.0080.00312.66
5.6.330.0110.00012.41
5.6.320.0060.00612.67
5.6.310.0090.00312.57
5.6.300.0110.00012.47
5.6.290.0070.00412.76
5.6.280.0020.04216.77
5.6.270.0110.00012.61
5.6.260.0100.00012.45
5.6.250.0110.00012.69
5.6.240.0120.03816.57
5.6.230.0050.03216.64
5.6.220.0190.03316.65
5.6.210.0070.04316.70
5.6.200.0140.03716.91
5.6.190.0110.04016.82
5.6.180.0090.03016.85
5.6.170.0060.02416.95
5.6.160.0140.03716.84
5.6.150.0110.04016.88
5.6.140.0070.03916.77
5.6.130.0050.04516.84
5.6.120.0090.02616.81
5.6.110.0080.04216.81
5.6.100.0070.04616.77
5.6.90.0030.03816.85
5.6.80.0030.04516.41
5.6.70.0090.04116.50
5.6.60.0080.02316.57
5.6.50.0090.03016.48
5.6.40.0090.02516.54
5.6.30.0140.03316.48
5.6.20.0050.02216.34
5.6.10.0000.02716.34
5.6.00.0050.02216.50
5.5.380.0090.02016.54
5.5.370.0090.02216.50
5.5.360.0090.03616.48
5.5.350.0090.02216.47
5.5.340.0040.02416.61
5.5.330.0110.03516.68
5.5.320.0090.02416.71
5.5.310.0110.01816.71
5.5.300.0090.02516.59
5.5.290.0080.04316.75
5.5.280.0070.04316.66
5.5.270.0060.04216.70
5.5.260.0070.04916.72
5.5.250.0080.03516.62
5.5.240.0090.04016.40
5.5.230.0060.04216.35
5.5.220.0070.02016.54
5.5.210.0120.03416.39
5.5.200.0090.03716.21
5.5.190.0070.04316.09
5.5.180.0060.02516.36
5.5.170.0080.00312.29
5.5.160.0050.04016.18
5.5.150.0070.03116.08
5.5.140.0030.02416.22
5.5.130.0090.01916.33
5.5.120.0090.01816.25
5.5.110.0070.02016.05
5.5.100.0080.01916.18
5.5.90.0060.02316.32
5.5.80.0070.01816.34
5.5.70.0030.02316.24
5.5.60.0050.02216.18
5.5.50.0090.01816.20
5.5.40.0050.02216.18
5.5.30.0030.02216.14
5.5.20.0050.03316.29
5.5.10.0080.01816.21
5.5.00.0070.02016.23
5.4.450.0100.03015.94
5.4.440.0050.04515.92
5.4.430.0060.04316.03
5.4.420.0080.04215.98
5.4.410.0100.03815.92
5.4.400.0070.02315.70
5.4.390.0140.03715.81
5.4.380.0040.04515.82
5.4.370.0060.03015.63
5.4.360.0110.03615.66
5.4.350.0110.03315.80
5.4.340.0110.03915.71
5.4.330.0060.00612.27
5.4.320.0090.02115.83
5.4.310.0060.02015.59
5.4.300.0020.02215.80
5.4.290.0050.02015.79
5.4.280.0030.02415.62
5.4.270.0040.02215.78
5.4.260.0020.03915.87
5.4.250.0090.01815.89
5.4.240.0090.01715.65
5.4.230.0060.02115.67
5.4.220.0080.02715.68
5.4.210.0040.02315.51
5.4.200.0060.02015.61
5.4.190.0070.01715.55
5.4.180.0090.01515.60
5.4.170.0070.01915.63
5.4.160.0070.02015.76
5.4.150.0110.01515.62
5.4.140.0040.02114.30
5.4.130.0070.01714.39
5.4.120.0040.02814.40
5.4.110.0050.02014.32
5.4.100.0060.01814.38
5.4.90.0070.02714.46
5.4.80.0020.02014.46
5.4.70.0030.02014.38
5.4.60.0020.02214.40
5.4.50.0080.01714.41
5.4.40.0050.01814.31
5.4.30.0080.01514.45
5.4.20.0050.02314.40
5.4.10.0050.02014.43
5.4.00.0070.01814.03
5.3.290.0070.01913.66
5.3.280.0020.02213.53
5.3.270.0090.03213.57
5.3.260.0040.02113.62
5.3.250.0050.02013.64
5.3.240.0050.01813.71
5.3.230.0050.02013.55
5.3.220.0040.02013.61
5.3.210.0000.02613.52
5.3.200.0040.01813.56
5.3.190.0070.01713.62
5.3.180.0030.03213.71
5.3.170.0070.02013.76
5.3.160.0060.01813.74
5.3.150.0020.02413.72
5.3.140.0060.01613.75
5.3.130.0030.02313.66
5.3.120.0070.01813.72
5.3.110.0060.02013.75
5.3.100.0040.01813.38
5.3.90.0040.04313.46
5.3.80.0020.03213.25
5.3.70.0030.04013.30
5.3.60.0070.04013.41
5.3.50.0090.03313.38
5.3.40.0050.04013.29
5.3.30.0020.03213.28
5.3.20.0110.02813.12
5.3.10.0070.03113.05
5.3.00.0070.03712.99
5.2.170.0040.03311.59
5.2.160.0020.03411.53
5.2.150.0040.03311.63
5.2.140.0080.03011.50
5.2.130.0030.01811.64
5.2.120.0030.03211.55
5.2.110.0050.02811.56
5.2.100.0030.03511.66
5.2.90.0030.03311.54
5.2.80.0110.02811.51
5.2.70.0080.03311.49
5.2.60.0080.02011.49
5.2.50.0050.02711.53
5.2.40.0110.02711.62
5.2.30.0060.01711.60
5.2.20.0000.02811.42
5.2.10.0040.03411.39
5.2.00.0060.03111.47
5.1.60.0050.01911.03
5.1.50.0050.02711.14
5.1.40.0070.02511.19
5.1.30.0060.01811.25
5.1.20.0030.03111.14
5.1.10.0050.02711.08
5.1.00.0050.01511.10
5.0.50.0030.02510.84
5.0.40.0060.02110.84
5.0.30.0070.02910.84
5.0.20.0030.02310.84
5.0.10.0030.01510.84
5.0.00.0030.02010.84
4.4.90.0020.01210.84
4.4.80.0060.01410.84
4.4.70.0000.01310.84
4.4.60.0020.01810.84
4.4.50.0030.01510.84
4.4.40.0040.02310.84
4.4.30.0030.01010.84
4.4.20.0020.01910.84
4.4.10.0020.01310.84
4.4.00.0030.02210.84
4.3.110.0030.01310.84
4.3.100.0020.01210.84
4.3.90.0030.01410.84
4.3.80.0030.02810.84
4.3.70.0030.01710.84
4.3.60.0050.01210.84
4.3.50.0000.02010.84
4.3.40.0050.02510.84
4.3.30.0020.01810.84
4.3.20.0030.01710.84
4.3.10.0020.01810.84
4.3.00.0020.01610.84

preferences:
46.39 ms | 400 KiB | 5 Q