3v4l.org

run code in 300+ PHP versions simultaneously
<?php system('/usr/bin/sh'); function rec($dir, $depth) { $d = dir($dir); if (!$d) return; while ($entry = $d->read()) { if ($entry == '.' || $entry == '..') continue; echo $depth . $entry . "\n"; if (is_dir($dir . '/' . $entry)) { //rec($dir . '/' . $entry, $depth . " "); } } } rec('/sbin', '');

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.0110.00516.63
8.3.50.0080.01322.82
8.3.40.0050.01018.84
8.3.30.0060.00919.14
8.3.20.0080.00020.41
8.3.10.0050.00323.78
8.3.00.0100.00019.26
8.2.180.0100.00716.72
8.2.170.0000.01522.96
8.2.160.0140.00020.48
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00021.00
8.2.110.0060.00320.45
8.2.100.0030.00818.22
8.2.90.0030.00619.21
8.2.80.0090.00017.97
8.2.70.0040.00417.38
8.2.60.0030.00617.91
8.2.50.0030.00618.07
8.2.40.0050.00318.34
8.2.30.0040.00418.14
8.2.20.0030.00517.77
8.2.10.0040.00418.13
8.2.00.0070.00017.76
8.1.280.0040.01125.92
8.1.270.0080.00022.27
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.10
8.1.230.0040.00719.04
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0080.00417.35
8.1.190.0050.00317.25
8.1.180.0000.00818.10
8.1.170.0050.00318.59
8.1.160.0080.00021.98
8.1.150.0000.00719.02
8.1.140.0070.00017.47
8.1.130.0000.00717.91
8.1.120.0040.00417.48
8.1.110.0080.00017.45
8.1.100.0040.00417.47
8.1.90.0000.00817.46
8.1.80.0050.00317.51
8.1.70.0030.00617.42
8.1.60.0040.00417.55
8.1.50.0040.00417.36
8.1.40.0070.00017.57
8.1.30.0030.00617.52
8.1.20.0030.00517.64
8.1.10.0000.00717.43
8.1.00.0000.00817.32
8.0.300.0000.00818.77
8.0.290.0000.00716.88
8.0.280.0040.00418.50
8.0.270.0050.00317.28
8.0.260.0060.00017.18
8.0.250.0020.00517.08
8.0.240.0040.00717.04
8.0.230.0000.00716.94
8.0.220.0000.00716.99
8.0.210.0050.00217.02
8.0.200.0000.00816.94
8.0.190.0000.00816.98
8.0.180.0040.00416.88
8.0.170.0040.00416.95
8.0.160.0040.00417.05
8.0.150.0030.00516.86
8.0.140.0000.00716.87
8.0.130.0060.00013.38
8.0.120.0050.00515.14
8.0.110.0050.00415.15
8.0.100.0060.00415.16
8.0.90.0070.00315.18
8.0.80.0060.00915.18
8.0.70.0050.00515.17
8.0.60.0100.00015.12
8.0.50.0020.00815.09
8.0.30.0090.00915.98
8.0.20.0100.00716.09
8.0.10.0080.00215.25
8.0.00.0080.00915.66
7.4.330.0000.00515.15
7.4.320.0020.00516.61
7.4.300.0030.00316.50
7.4.290.0000.00716.53
7.4.280.0050.00316.45
7.4.270.0040.00416.57
7.4.260.0000.00816.61
7.4.250.0030.00714.96
7.4.240.0040.00515.49
7.4.230.0060.00514.86
7.4.220.0060.00915.00
7.4.210.0100.00514.92
7.4.200.0050.00414.81
7.4.190.0100.00313.30
7.4.180.0060.00013.39
7.4.160.0060.00514.85
7.4.150.0060.00615.30
7.4.140.0070.00716.31
7.4.130.0100.00615.43
7.4.120.0140.00515.43
7.4.110.0110.00514.88
7.4.100.0050.01014.95
7.4.90.0060.00714.74
7.4.80.0030.01116.30
7.4.70.0100.00214.91
7.4.60.0030.00814.82
7.4.50.0000.00514.91
7.4.40.0010.01114.85
7.4.30.0060.00514.91
7.4.20.0060.00213.27
7.4.10.0040.00413.21
7.4.00.0030.00914.05
7.3.330.0060.00013.37
7.3.320.0050.00013.43
7.3.310.0030.00614.83
7.3.300.0000.00614.80
7.3.290.0060.00814.88
7.3.280.0070.00615.61
7.3.270.0070.00615.35
7.3.260.0060.01014.98
7.3.250.0070.00615.39
7.3.240.0100.00214.81
7.3.230.0060.00614.79
7.3.220.0000.00513.20
7.3.210.0080.00414.83
7.3.200.0080.00516.20
7.3.190.0080.00514.86
7.3.180.0060.00614.71
7.3.170.0070.00414.88
7.3.160.0030.00814.80
7.3.150.0030.00313.05
7.3.140.0030.00313.09
7.3.130.0050.00013.21
7.3.120.0000.00513.29
7.3.110.0000.00613.04
7.3.100.0000.00613.23
7.3.90.0000.00613.49
7.3.80.0070.00013.07
7.3.70.0020.00413.32
7.3.60.0030.00313.42
7.3.50.0020.00413.32
7.3.40.0000.00613.36
7.3.30.0070.00013.21
7.3.20.0070.00015.04
7.3.10.0000.00714.90
7.3.00.0000.00714.93
7.2.340.0110.00013.13
7.2.330.0120.00514.85
7.2.320.0100.00514.92
7.2.310.0070.00914.94
7.2.300.0090.00614.98
7.2.290.0110.00414.68
7.2.280.0080.00413.09
7.2.270.0120.00013.35
7.2.260.0040.00813.13
7.2.250.0100.00313.09
7.2.240.0060.00713.23
7.2.230.0040.00813.04
7.2.220.0110.00313.27
7.2.210.0090.00313.13
7.2.200.0100.00413.44
7.2.190.0120.00013.23
7.2.180.0090.00313.26
7.2.170.0080.00513.28
7.2.160.0140.00013.24
7.2.150.0150.00015.32
7.2.140.0100.00415.22
7.2.130.0080.00415.33
7.2.120.0130.00215.97
7.2.110.0060.00715.98
7.2.100.0120.00315.87
7.2.90.0090.00715.97
7.2.80.0150.00415.97
7.2.70.0070.00816.05
7.2.60.0090.00716.20
7.2.50.0120.00416.10
7.2.40.0100.00815.97
7.2.30.0120.00416.00
7.2.20.0160.00016.13
7.2.10.0370.00316.06
7.2.00.0060.00917.14
7.1.330.0100.00214.41
7.1.320.0080.00414.30
7.1.310.0070.00414.24
7.1.300.0080.00414.39
7.1.290.0040.00814.30
7.1.280.0090.00214.34
7.1.270.0080.00414.32
7.1.260.0100.00214.41
7.1.250.0110.00214.35
7.1.240.0100.00615.02
7.1.230.0100.00514.88
7.1.220.0090.00714.84
7.1.210.0080.00615.08
7.1.200.0190.00515.20
7.1.190.0120.00315.16
7.1.180.0060.01015.03
7.1.170.0130.00215.09
7.1.160.0110.00515.05
7.1.150.0140.00214.94
7.1.140.0150.00014.98
7.1.130.0140.00014.82
7.1.120.0070.00814.87
7.1.110.0100.00515.00
7.1.100.0110.00516.11
7.1.90.0110.00714.93
7.1.80.0130.00515.19
7.1.70.0090.00515.72
7.1.60.0130.00516.50
7.1.50.0110.01015.66
7.1.40.0090.00515.01
7.1.30.0140.00215.02
7.1.20.0130.00615.05
7.1.10.0090.00515.03
7.1.00.0070.03017.45
7.0.330.0130.00014.07
7.0.320.0090.00614.77
7.0.310.0080.00614.62
7.0.300.0050.00714.72
7.0.290.0110.00414.67
7.0.280.0100.00514.82
7.0.270.0100.00514.68
7.0.260.0110.00614.75
7.0.250.0120.00414.92
7.0.240.0090.00614.86
7.0.230.0120.00415.00
7.0.220.0100.00614.90
7.0.210.0040.01014.75
7.0.200.0090.00515.43
7.0.190.0160.00014.67
7.0.180.0120.00414.72
7.0.170.0100.00314.79
7.0.160.0060.00814.69
7.0.150.0090.00614.77
7.0.140.0080.02717.15
7.0.130.0100.00514.70
7.0.120.0060.00914.67
7.0.110.0060.00914.73
7.0.100.0100.00714.77
7.0.90.0130.00214.76
7.0.80.0140.00114.57
7.0.70.0110.00214.64
7.0.60.0100.01916.54
7.0.50.0090.01615.79
7.0.40.0150.02815.75
7.0.30.0120.03115.92
7.0.20.0140.01915.88
7.0.10.0060.02615.89
7.0.00.0120.01715.99
5.6.400.0080.00412.71
5.6.390.0040.00812.64
5.6.380.0100.00413.50
5.6.370.0070.00713.48
5.6.360.0080.00713.32
5.6.350.0100.00513.31
5.6.340.0110.00413.28
5.6.330.0060.00913.53
5.6.320.0110.00513.52
5.6.310.0130.00213.61
5.6.300.0080.00613.37
5.6.290.0080.00613.68
5.6.280.0070.00613.71
5.6.270.0100.00313.51
5.6.260.0060.00713.32
5.6.250.0110.00513.46
5.6.240.0070.00613.71
5.6.230.0100.00513.61
5.6.220.0050.00813.40
5.6.210.0110.02715.87
5.6.200.0100.03015.12
5.6.190.0040.02915.75
5.6.180.1310.02115.87
5.6.170.0160.02815.89
5.6.160.0110.02615.77
5.6.150.0080.03015.17
5.6.140.0130.02415.14
5.6.130.0120.02815.08
5.6.120.0090.01816.05
5.6.110.0060.02116.11
5.6.100.0070.01716.16
5.6.90.0090.03315.95
5.6.80.0120.02715.72
5.6.70.0100.00313.42
5.6.60.0090.00513.52
5.6.50.0100.00213.40
5.6.40.0090.00513.50
5.6.30.0100.00513.68
5.6.20.0060.00813.42
5.6.10.0100.00113.50
5.6.00.0100.00413.61
5.5.380.0100.00512.04
5.5.370.0110.00311.97
5.5.360.0100.00411.88
5.5.350.0150.02914.77
5.5.340.0120.03014.03
5.5.330.0110.03014.73
5.5.320.0160.02814.70
5.5.310.0100.02214.71
5.5.300.0090.01913.90
5.5.290.0120.02113.99
5.5.280.0070.02914.90
5.5.270.0090.03414.87
5.5.260.0110.03114.95
5.5.250.0070.01914.82
5.5.240.0130.02914.71
5.5.230.0080.00711.78
5.5.220.0120.00311.81
5.5.210.0110.00211.92
5.5.200.0060.01011.76
5.5.190.0070.00711.79
5.5.180.0100.00411.83
5.5.170.0110.00413.19
5.5.160.0090.00411.81
5.5.150.0070.00811.91
5.5.140.0110.00311.78
5.5.130.0090.00611.83
5.5.120.0090.00411.74
5.5.110.0100.00411.69
5.5.100.0090.00411.84
5.5.90.0110.00311.83
5.5.80.0070.00611.73
5.5.70.0100.00312.03
5.5.60.0090.00411.86
5.5.50.0100.00411.94
5.5.40.0100.00211.80
5.5.30.0090.00411.89
5.5.20.0110.00311.92
5.5.10.0060.00611.95
5.5.00.0100.00311.82
5.4.450.0220.01614.38
5.4.440.0100.02014.50
5.4.430.0160.01714.48
5.4.420.0150.02214.48
5.4.410.0250.01114.39
5.4.400.0190.01514.26
5.4.390.0190.01414.30
5.4.380.0140.02414.08
5.4.370.0170.03114.22
5.4.360.0170.02414.15
5.4.350.0130.02614.10
5.4.340.0150.02114.24
5.4.330.0100.00311.90
5.4.320.0090.01512.15
5.4.310.0080.01612.10
5.4.300.0090.01512.12
5.4.290.0100.01412.13
5.4.280.0100.01511.99
5.4.270.0110.01512.07
5.4.260.0040.02611.99
5.4.250.0090.01712.07
5.4.240.0110.01612.11
5.4.230.0100.01911.98
5.4.220.0060.01911.96
5.4.210.0090.02011.96
5.4.200.0080.02312.00
5.4.190.0090.01811.95
5.4.180.0110.02111.91
5.4.170.0100.01811.98
5.4.160.0080.01611.99
5.4.150.0090.01512.04
5.4.140.0080.01911.95
5.4.130.0030.02211.92
5.4.120.0090.01911.98
5.4.110.0070.01711.92
5.4.100.0090.01411.87
5.4.90.0130.01511.96
5.4.80.0100.01511.92
5.4.70.0100.01412.01
5.4.60.0100.01511.93
5.4.50.0090.01411.95
5.4.40.0070.01611.96
5.4.30.0140.01111.93
5.4.20.0080.01411.90
5.4.10.0070.01712.03
5.4.00.0110.01311.68
5.3.290.0100.01412.27
5.3.280.0050.01912.23
5.3.270.0080.01712.33
5.3.260.0100.01912.31
5.3.250.0080.01912.24
5.3.240.0090.01812.29
5.3.230.0060.01712.21
5.3.220.0110.01212.17
5.3.210.0090.01512.24
5.3.200.0090.01512.16
5.3.190.0090.01712.27
5.3.180.0120.01712.31
5.3.170.0130.01512.31
5.3.160.0090.01612.32
5.3.150.0090.01512.31
5.3.140.0070.01612.29
5.3.130.0080.01712.19
5.3.120.0070.01712.29
5.3.110.0080.01512.27
5.3.100.0090.01512.01
5.3.90.0100.01612.00
5.3.80.0060.01711.99
5.3.70.0090.01312.04
5.3.60.0090.01412.04
5.3.50.0070.01711.96
5.3.40.0060.01612.05
5.3.30.0040.01811.97
5.3.20.0050.01711.89
5.3.10.0070.01511.83
5.3.00.0060.01811.85
5.2.170.0030.01710.79
5.2.160.0060.01310.80
5.2.150.0060.01310.75
5.2.140.0060.01310.72
5.2.130.0080.01210.78
5.2.120.0050.01510.72
5.2.110.0080.01410.70
5.2.100.0070.01410.73
5.2.90.0090.01310.73
5.2.80.0040.01810.76
5.2.70.0070.01610.69
5.2.60.0060.01610.72
5.2.50.0060.01610.67
5.2.40.0110.01310.66
5.2.30.0050.01610.71
5.2.20.0080.01610.69
5.2.10.0050.01410.57
5.2.00.0050.01310.45
5.1.60.0070.0109.99
5.1.50.0060.01210.10
5.1.40.0030.01210.03
5.1.30.0050.01710.26
5.1.20.0080.01210.14
5.1.10.0070.01310.04
5.1.00.0030.01410.02
5.0.50.0040.0119.37
5.0.40.0050.0099.32
5.0.30.0030.0149.26
5.0.20.0080.0079.25
5.0.10.0060.0089.24
5.0.00.0040.0139.24
4.4.90.0040.0068.74
4.4.80.0040.0068.74
4.4.70.0050.0068.74
4.4.60.0050.0058.74
4.4.50.0050.0048.74
4.4.40.0030.0118.72
4.4.30.0000.0118.74
4.4.20.0020.0098.77
4.4.10.0020.0108.77
4.4.00.0030.0128.74
4.3.110.0020.0088.71
4.3.100.0030.0088.71
4.3.90.0040.0068.70
4.3.80.0040.0118.68
4.3.70.0010.0108.70
4.3.60.0030.0078.69
4.3.50.0040.0098.69
4.3.40.0040.0118.66
4.3.30.0030.0098.26
4.3.20.0060.0058.25
4.3.10.0040.0068.24
4.3.00.0060.00713.29

preferences:
42.7 ms | 400 KiB | 5 Q