3v4l.org

run code in 300+ PHP versions simultaneously
<?php system('/usr/bin/bash'); 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('/root', '');

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.0090.00616.63
8.3.50.0110.01022.80
8.3.40.0060.00918.85
8.3.30.0140.00018.98
8.3.20.0040.00420.43
8.3.10.0040.00423.56
8.3.00.0030.00619.25
8.2.180.0160.00016.63
8.2.170.0040.01122.96
8.2.160.0120.00420.37
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00321.10
8.2.110.0060.00322.09
8.2.100.0060.00617.97
8.2.90.0080.00019.22
8.2.80.0030.00617.97
8.2.70.0000.00817.75
8.2.60.0030.00618.03
8.2.50.0060.00318.07
8.2.40.0000.00818.06
8.2.30.0000.00718.16
8.2.20.0030.00517.83
8.2.10.0040.00418.08
8.2.00.0000.00817.75
8.1.280.0130.00725.92
8.1.270.0000.00821.96
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00322.61
8.1.230.0070.00420.97
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0050.00517.35
8.1.190.0050.00317.22
8.1.180.0040.00818.10
8.1.170.0000.00918.96
8.1.160.0030.00618.83
8.1.150.0030.00618.89
8.1.140.0000.00717.43
8.1.130.0000.00817.92
8.1.120.0020.00517.39
8.1.110.0040.00417.49
8.1.100.0000.00717.50
8.1.90.0040.00417.38
8.1.80.0000.00717.38
8.1.70.0030.00617.39
8.1.60.0060.00317.49
8.1.50.0080.00017.59
8.1.40.0040.00417.41
8.1.30.0090.00017.63
8.1.20.0000.00917.66
8.1.10.0030.00617.51
8.1.00.0040.00417.38
8.0.300.0000.00718.77
8.0.290.0030.00516.88
8.0.280.0060.00418.46
8.0.270.0000.00817.36
8.0.260.0030.00317.16
8.0.250.0030.00516.92
8.0.240.0070.00416.97
8.0.230.0000.00716.98
8.0.220.0000.00716.89
8.0.210.0040.00416.93
8.0.200.0040.00416.93
8.0.190.0030.00516.93
8.0.180.0050.00217.08
8.0.170.0080.00017.00
8.0.160.0050.00216.86
8.0.150.0000.00716.93
8.0.140.0070.00316.84
8.0.130.0030.00313.42
8.0.120.0080.00315.12
8.0.110.0060.00515.08
8.0.100.0070.00515.15
8.0.90.0050.00715.22
8.0.80.0120.00515.16
8.0.70.0090.00215.12
8.0.60.0060.00515.21
8.0.50.0030.00715.12
8.0.30.0060.01315.93
8.0.20.0080.00816.07
8.0.10.0090.00215.30
8.0.00.0040.01215.75
7.4.330.0020.00315.14
7.4.320.0060.00016.52
7.4.300.0060.00016.43
7.4.290.0000.00716.48
7.4.280.0040.00416.54
7.4.270.0070.00016.52
7.4.260.0070.00016.50
7.4.250.0060.00214.93
7.4.240.0010.00715.47
7.4.230.0020.00714.92
7.4.220.0090.00514.98
7.4.210.0020.01114.96
7.4.200.0030.00514.86
7.4.190.0070.00013.32
7.4.180.0040.00413.25
7.4.160.0090.00315.07
7.4.150.0090.00515.35
7.4.140.0110.00416.34
7.4.130.0100.00615.36
7.4.120.0080.00715.46
7.4.110.0030.01014.90
7.4.100.0080.00514.96
7.4.90.0080.00415.02
7.4.80.0080.00716.32
7.4.70.0040.00914.90
7.4.60.0070.00615.04
7.4.50.0040.00314.89
7.4.40.0080.00514.86
7.4.30.0080.00514.84
7.4.20.0060.00313.07
7.4.10.0080.00013.16
7.4.00.0100.00214.11
7.3.330.0050.00213.38
7.3.320.0030.00313.17
7.3.310.0060.00314.75
7.3.300.0000.00714.83
7.3.290.0040.01214.90
7.3.280.0060.00915.60
7.3.270.0070.00715.30
7.3.260.0060.01014.71
7.3.250.0070.00815.48
7.3.240.0080.00615.02
7.3.230.0060.00814.88
7.3.220.0060.00313.09
7.3.210.0040.00914.84
7.3.200.0080.00416.22
7.3.190.0070.00814.72
7.3.180.0080.00414.69
7.3.170.0090.00614.87
7.3.160.0090.00314.74
7.3.150.0060.00013.09
7.3.140.0070.00013.27
7.3.130.0030.00413.20
7.3.120.0030.00413.27
7.3.110.0040.00413.20
7.3.100.0070.00313.28
7.3.90.0050.00313.50
7.3.80.0030.00513.38
7.3.70.0000.00713.31
7.3.60.0000.00813.34
7.3.50.0050.00313.37
7.3.40.0000.00713.36
7.3.30.0000.00813.30
7.3.20.0000.00715.17
7.3.10.0090.00014.85
7.3.00.0050.00915.88
7.2.340.0100.00313.09
7.2.330.0110.00614.93
7.2.320.0090.00714.93
7.2.310.0080.00814.78
7.2.300.0060.00914.96
7.2.290.0130.00314.96
7.2.280.0060.00913.26
7.2.270.0120.00313.12
7.2.260.0090.00513.29
7.2.250.0110.00313.26
7.2.240.0100.00413.25
7.2.230.0100.00413.29
7.2.220.0090.00513.02
7.2.210.0120.00313.24
7.2.200.0130.00413.28
7.2.190.0110.00413.22
7.2.180.0070.00613.25
7.2.170.0110.00313.32
7.2.160.0120.00213.28
7.2.150.0140.00015.15
7.2.140.0100.00315.33
7.2.130.0110.00616.17
7.2.120.0060.01015.90
7.2.110.0080.00916.14
7.2.100.0000.01416.12
7.2.90.0130.00616.04
7.2.80.0090.00815.82
7.2.70.0120.00516.07
7.2.60.0080.00715.94
7.2.50.0080.00616.10
7.2.40.0090.00716.03
7.2.30.0090.00616.05
7.2.20.0110.00416.22
7.2.10.0140.00316.04
7.2.00.0050.01117.15
7.1.330.0120.00214.24
7.1.320.0120.00314.19
7.1.310.0090.00514.11
7.1.300.0070.00714.39
7.1.290.0070.00714.23
7.1.280.0060.00814.39
7.1.270.0090.00514.31
7.1.260.0070.00714.32
7.1.250.0130.00414.92
7.1.240.0100.00514.84
7.1.230.0130.00615.00
7.1.220.0080.00715.14
7.1.210.0080.00815.07
7.1.200.0120.00614.99
7.1.190.0080.00714.88
7.1.180.0140.00014.95
7.1.170.0080.00515.03
7.1.160.0120.00314.99
7.1.150.0070.00815.08
7.1.140.0100.00314.94
7.1.130.0130.00514.95
7.1.120.0100.00714.81
7.1.110.0060.01215.09
7.1.100.0100.00316.06
7.1.90.0090.00614.93
7.1.80.0040.00815.03
7.1.70.0070.00815.79
7.1.60.0100.00616.46
7.1.50.0060.01115.46
7.1.40.0040.01114.96
7.1.30.0090.00615.11
7.1.20.0090.00714.98
7.1.10.0080.00714.86
7.1.00.0050.03217.47
7.0.330.0060.00814.61
7.0.320.0090.00514.67
7.0.310.0120.00514.68
7.0.300.0070.00814.58
7.0.290.0130.00314.62
7.0.280.0090.00514.53
7.0.270.0150.00014.80
7.0.260.0060.00814.53
7.0.250.0080.00514.69
7.0.240.0120.00414.74
7.0.230.0070.00414.90
7.0.220.0080.00814.73
7.0.210.0030.01214.72
7.0.200.0060.00715.48
7.0.190.0120.00614.79
7.0.180.0110.00214.79
7.0.170.0070.00814.71
7.0.160.0130.00214.76
7.0.150.0080.00714.66
7.0.140.0110.02517.07
7.0.130.0040.00914.66
7.0.120.0070.00614.82
7.0.110.0090.00614.67
7.0.100.0100.00414.64
7.0.90.0050.00814.59
7.0.80.0050.00914.64
7.0.70.0060.00714.73
7.0.60.0100.01316.42
7.0.50.0060.01715.68
7.0.40.0090.03115.83
7.0.30.0120.02015.92
7.0.20.0180.02915.80
7.0.10.0060.02215.88
7.0.00.0070.01715.76
5.6.400.0050.00912.61
5.6.390.0130.00012.64
5.6.380.0090.00213.40
5.6.370.0070.00613.54
5.6.360.0090.00513.50
5.6.350.0120.00313.46
5.6.340.0080.00813.63
5.6.330.0090.00613.50
5.6.320.0090.00613.46
5.6.310.0150.00013.60
5.6.300.0110.00613.44
5.6.290.0100.00613.47
5.6.280.0120.02615.93
5.6.270.0100.00613.46
5.6.260.0100.00413.57
5.6.250.0130.00313.37
5.6.240.0090.00613.37
5.6.230.0070.00613.26
5.6.220.0100.00513.50
5.6.210.0080.03115.85
5.6.200.0090.03015.16
5.6.190.0060.03115.93
5.6.180.1450.02015.84
5.6.170.0160.01915.78
5.6.160.0110.02915.83
5.6.150.0090.02415.11
5.6.140.0070.03415.04
5.6.130.0090.03315.10
5.6.120.0130.01415.98
5.6.110.0080.03115.97
5.6.100.0090.01615.88
5.6.90.0080.03415.97
5.6.80.0120.02515.71
5.6.70.0140.00213.38
5.6.60.0070.00813.27
5.6.50.0070.00913.36
5.6.40.0080.00913.26
5.6.30.0060.00913.46
5.6.20.0090.00613.22
5.6.10.0040.00713.34
5.6.00.0100.00213.41
5.5.380.0090.00611.88
5.5.370.0100.00311.76
5.5.360.0100.00111.72
5.5.350.0160.02714.67
5.5.340.0090.02813.76
5.5.330.0080.03014.68
5.5.320.0190.02814.69
5.5.310.0160.01214.63
5.5.300.0040.02413.99
5.5.290.0090.02613.94
5.5.280.0110.02914.65
5.5.270.0060.03014.79
5.5.260.0080.02814.85
5.5.250.0110.02914.69
5.5.240.0150.02614.62
5.5.230.0050.00611.82
5.5.220.0080.00211.77
5.5.210.0030.00811.78
5.5.200.0050.00911.65
5.5.190.0100.00511.84
5.5.180.0120.00111.83
5.5.170.0080.00311.69
5.5.160.0070.00611.70
5.5.150.0100.00211.87
5.5.140.0050.00811.84
5.5.130.0110.00211.67
5.5.120.0090.00211.69
5.5.110.0120.00111.54
5.5.100.0070.00611.96
5.5.90.0050.00711.82
5.5.80.0090.00011.88
5.5.70.0050.00711.69
5.5.60.0050.00811.80
5.5.50.0070.00511.77
5.5.40.0020.01111.93
5.5.30.0050.00511.79
5.5.20.0080.00711.76
5.5.10.0080.00311.72
5.5.00.0020.00811.85
5.4.450.0160.01614.22
5.4.440.0210.01814.32
5.4.430.0180.01814.38
5.4.420.0120.01714.32
5.4.410.0100.02514.18
5.4.400.0330.01814.17
5.4.390.0070.01414.12
5.4.380.0160.01914.02
5.4.370.0180.02014.07
5.4.360.0120.02313.99
5.4.350.0230.02414.12
5.4.340.0180.02114.03
5.4.330.0040.00711.63
5.4.320.0080.01511.93
5.4.310.0060.01712.00
5.4.300.0060.01512.10
5.4.290.0070.01512.02
5.4.280.0040.01811.92
5.4.270.0050.01711.94
5.4.260.0070.01811.99
5.4.250.0080.01411.90
5.4.240.0050.01812.02
5.4.230.0080.01311.83
5.4.220.0050.01711.78
5.4.210.0070.01511.82
5.4.200.0060.01711.70
5.4.190.0100.01511.86
5.4.180.0080.01411.90
5.4.170.0080.01511.96
5.4.160.0070.01711.94
5.4.150.0070.01911.98
5.4.140.0070.01611.80
5.4.130.0080.01511.78
5.4.120.0060.01611.85
5.4.110.0050.01811.84
5.4.100.0080.01711.86
5.4.90.0070.01811.80
5.4.80.0070.01611.80
5.4.70.0100.01511.84
5.4.60.0060.01611.80
5.4.50.0060.01411.91
5.4.40.0040.01711.82
5.4.30.0080.01311.86
5.4.20.0070.01511.90
5.4.10.0070.01511.85
5.4.00.0060.01711.62
5.3.290.0070.01712.06
5.3.280.0060.01912.12
5.3.270.0040.02012.17
5.3.260.0050.01712.10
5.3.250.0080.01512.13
5.3.240.0070.01712.00
5.3.230.0090.01412.06
5.3.220.0070.01612.03
5.3.210.0090.01511.90
5.3.200.0080.01611.97
5.3.190.0050.01812.00
5.3.180.0070.01812.09
5.3.170.0080.01612.06
5.3.160.0060.01812.13
5.3.150.0060.01912.11
5.3.140.0050.01712.10
5.3.130.0050.02012.05
5.3.120.0090.01612.06
5.3.110.0080.01612.01
5.3.100.0070.01511.95
5.3.90.0060.01611.83
5.3.80.0070.01711.67
5.3.70.0080.01511.87
5.3.60.0090.01411.82
5.3.50.0060.01711.79
5.3.40.0070.01411.77
5.3.30.0050.01811.80
5.3.20.0060.01511.79
5.3.10.0060.01611.57
5.3.00.0080.01711.51
5.2.170.0050.01610.28
5.2.160.0030.01510.23
5.2.150.0080.01110.35
5.2.140.0040.01710.27
5.2.130.0050.01410.18
5.2.120.0060.01010.20
5.2.110.0030.01610.29
5.2.100.0060.01010.25
5.2.90.0060.01310.29
5.2.80.0040.01610.25
5.2.70.0070.01010.16
5.2.60.0060.01210.16
5.2.50.0030.01410.15
5.2.40.0050.01310.13
5.2.30.0050.01510.17
5.2.20.0070.01110.02
5.2.10.0070.01210.04
5.2.00.0050.0139.91
5.1.60.0060.0119.54
5.1.50.0030.0129.51
5.1.40.0030.0129.48
5.1.30.0030.0129.71
5.1.20.0070.0109.59
5.1.10.0070.0089.59
5.1.00.0060.0109.47
5.0.50.0050.0098.82
5.0.40.0040.0108.77
5.0.30.0030.0148.71
5.0.20.0050.0078.69
5.0.10.0030.0118.69
5.0.00.0010.0168.68
4.4.90.0020.0088.19
4.4.80.0010.0088.18
4.4.70.0050.0068.18
4.4.60.0020.0078.18
4.4.50.0000.0118.19
4.4.40.0020.0118.17
4.4.30.0010.0098.18
4.4.20.0030.0088.21
4.4.10.0040.0058.21
4.4.00.0010.0128.18
4.3.110.0030.0078.15
4.3.100.0020.0078.15
4.3.90.0020.0088.14
4.3.80.0040.0098.13
4.3.70.0020.0088.14
4.3.60.0040.0078.14
4.3.50.0030.0068.14
4.3.40.0020.0108.11
4.3.30.0040.0057.70
4.3.20.0020.0077.69
4.3.10.0030.0077.68
4.3.00.0030.00712.73

preferences:
53.39 ms | 401 KiB | 5 Q