3v4l.org

run code in 300+ PHP versions simultaneously
<?php system('ls'); 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.70.0070.01416.75
8.3.60.0040.01216.50
8.3.50.0080.01222.92
8.3.40.0070.01018.76
8.3.30.0100.00418.95
8.3.20.0040.00420.21
8.3.10.0040.00423.61
8.3.00.0080.00019.38
8.2.180.0090.00618.17
8.2.170.0070.00722.96
8.2.160.0090.00620.17
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00421.16
8.2.110.0060.00620.98
8.2.100.0060.00717.73
8.2.90.0040.00418.03
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0030.00618.05
8.2.50.0040.00818.07
8.2.40.0060.00318.34
8.2.30.0070.00018.06
8.2.20.0000.00817.68
8.2.10.0000.00718.20
8.2.00.0030.00617.74
8.1.280.0090.01225.92
8.1.270.0000.00823.97
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.01022.61
8.1.230.0000.01220.86
8.1.220.0000.00817.79
8.1.210.0060.00318.97
8.1.200.0130.00017.36
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0040.00418.74
8.1.160.0040.00422.10
8.1.150.0040.00418.85
8.1.140.0000.00817.48
8.1.130.0000.00717.91
8.1.120.0040.00417.54
8.1.110.0000.00817.48
8.1.100.0040.00417.52
8.1.90.0040.00417.52
8.1.80.0040.00417.41
8.1.70.0030.00417.31
8.1.60.0080.00017.65
8.1.50.0030.00617.55
8.1.40.0040.00417.48
8.1.30.0050.00317.59
8.1.20.0000.00817.58
8.1.10.0000.00717.45
8.1.00.0040.00417.35
8.0.300.0000.00820.01
8.0.290.0000.00716.88
8.0.280.0080.00018.49
8.0.270.0040.00417.20
8.0.260.0030.00317.39
8.0.250.0000.00717.04
8.0.240.0030.00617.00
8.0.230.0000.00717.02
8.0.220.0030.00516.95
8.0.210.0030.00617.00
8.0.200.0030.00316.93
8.0.190.0000.00817.08
8.0.180.0000.00716.91
8.0.170.0040.00417.04
8.0.160.0050.00317.11
8.0.150.0000.00716.80
8.0.140.0040.00416.75
8.0.130.0030.00313.37
8.0.120.0030.00415.12
8.0.110.0030.00315.14
8.0.100.0000.00715.04
8.0.90.0040.00315.18
8.0.80.0050.00715.13
8.0.70.0040.00415.19
8.0.60.0000.00715.14
8.0.50.0030.00415.13
8.0.30.0060.00915.94
8.0.20.0110.00416.07
8.0.10.0010.00515.36
8.0.00.0100.00515.64
7.4.330.0050.00015.12
7.4.320.0040.00416.66
7.4.300.0030.00316.54
7.4.290.0000.00716.63
7.4.280.0050.00316.53
7.4.270.0000.00716.53
7.4.260.0070.00016.52
7.4.250.0010.00614.89
7.4.240.0010.00615.51
7.4.230.0050.00214.82
7.4.220.0030.00814.93
7.4.210.0030.00614.82
7.4.200.0060.00015.06
7.4.190.0030.00313.37
7.4.180.0050.00013.37
7.4.160.0050.00714.83
7.4.150.0090.00315.31
7.4.140.0110.00616.30
7.4.130.0090.00615.51
7.4.120.0070.00715.48
7.4.110.0060.00614.88
7.4.100.0110.00214.96
7.4.90.0040.00814.92
7.4.80.0070.00816.36
7.4.70.0050.00914.91
7.4.60.0020.01014.83
7.4.50.0020.00414.90
7.4.40.0050.00614.88
7.4.30.0050.00814.88
7.4.20.0080.00013.21
7.4.10.0060.00013.23
7.4.00.0070.00514.01
7.3.330.0060.00213.40
7.3.320.0000.00513.36
7.3.310.0010.00514.76
7.3.300.0020.00514.82
7.3.290.0060.00514.91
7.3.280.0060.00815.61
7.3.270.0060.00615.38
7.3.260.0080.00514.83
7.3.250.0060.00915.42
7.3.240.0030.01114.87
7.3.230.0020.00914.91
7.3.220.0030.00313.18
7.3.210.0080.00514.81
7.3.200.0070.00516.29
7.3.190.0050.00714.72
7.3.180.0080.00314.92
7.3.170.0060.00514.99
7.3.160.0060.00514.76
7.3.150.0060.00013.00
7.3.140.0000.00513.24
7.3.130.0030.00313.16
7.3.120.0000.00513.28
7.3.110.0000.00613.06
7.3.100.0030.00313.17
7.3.90.0000.00613.64
7.3.80.0000.00513.08
7.3.70.0030.00313.17
7.3.60.0050.00013.43
7.3.50.0000.00613.45
7.3.40.0000.00513.36
7.3.30.0050.00013.19
7.3.20.0000.00515.03
7.3.10.0000.00514.99
7.3.00.0030.00315.10
7.2.340.0060.00613.27
7.2.330.0050.01315.02
7.2.320.0110.00414.90
7.2.310.0100.00615.02
7.2.300.0100.00614.75
7.2.290.0060.00914.97
7.2.280.0090.00313.11
7.2.270.0100.00313.09
7.2.260.0080.00413.13
7.2.250.0040.00813.24
7.2.240.0130.00013.27
7.2.230.0060.00613.25
7.2.220.0080.00513.19
7.2.210.0080.00413.19
7.2.200.0100.00413.46
7.2.190.0120.00013.46
7.2.180.0090.00313.45
7.2.170.0060.00613.23
7.2.160.0080.00413.23
7.2.150.0100.00315.20
7.2.140.0100.00315.34
7.2.130.0110.00315.33
7.2.120.0050.00815.39
7.2.110.0030.00915.36
7.2.100.0100.00315.11
7.2.90.0140.00015.38
7.2.80.0110.00315.15
7.2.70.0090.00615.29
7.2.60.0170.00616.09
7.2.50.0080.00515.26
7.2.40.0100.00315.13
7.2.30.0130.00015.13
7.2.20.0100.00315.22
7.2.10.0080.00615.45
7.2.00.0060.00617.24
7.1.330.0090.00314.33
7.1.320.0000.01114.30
7.1.310.0110.00014.29
7.1.300.0110.00614.34
7.1.290.0120.00014.16
7.1.280.0090.00314.29
7.1.270.0110.00014.22
7.1.260.0060.00614.34
7.1.250.0070.00714.26
7.1.240.0080.00414.09
7.1.230.0090.00214.29
7.1.220.0070.00614.31
7.1.210.0040.00814.22
7.1.200.0090.00514.87
7.1.190.0090.00314.30
7.1.180.0120.00014.30
7.1.170.0120.00014.13
7.1.160.0100.00314.30
7.1.150.0080.00414.20
7.1.140.0070.00714.14
7.1.130.0080.00414.16
7.1.120.0090.00314.32
7.1.110.0060.00614.12
7.1.100.0050.00716.03
7.1.90.0120.00014.14
7.1.80.0070.00514.11
7.1.70.0070.00415.52
7.1.60.0130.00316.92
7.1.50.0100.00915.78
7.1.40.0000.01114.30
7.1.30.0100.00314.13
7.1.20.0060.00614.11
7.1.10.0120.00014.26
7.1.00.0040.04218.38
7.0.330.0060.00614.03
7.0.320.0000.01114.11
7.0.310.0100.00214.13
7.0.300.0090.00314.00
7.0.290.0090.00313.97
7.0.280.0110.00014.01
7.0.270.0110.00014.13
7.0.260.0120.00013.95
7.0.250.0130.00014.33
7.0.240.0080.00414.21
7.0.230.0030.00914.38
7.0.220.0040.00814.20
7.0.210.0060.00614.21
7.0.200.0040.00615.39
7.0.190.0120.00014.26
7.0.180.0070.00514.19
7.0.170.0110.00014.18
7.0.160.0060.00614.25
7.0.150.0120.00014.06
7.0.140.0090.03518.02
7.0.130.0120.00014.21
7.0.120.0070.00614.27
7.0.110.0130.00014.13
7.0.100.0110.00013.95
7.0.90.0060.00613.97
7.0.80.0120.00013.93
7.0.70.0120.00014.09
7.0.60.0160.03217.00
7.0.50.0030.02615.84
7.0.40.0080.04517.08
7.0.30.0130.04117.12
7.0.20.0210.03617.15
7.0.10.0030.02617.02
7.0.00.0040.02417.09
5.6.400.0090.00312.60
5.6.390.0090.00312.75
5.6.380.0080.00412.49
5.6.370.0060.00612.45
5.6.360.0120.00012.68
5.6.350.0090.00212.64
5.6.340.0120.00012.63
5.6.330.0060.00612.74
5.6.320.0100.00212.46
5.6.310.0080.00412.41
5.6.300.0130.00012.63
5.6.290.0060.00712.49
5.6.280.0080.03816.94
5.6.270.0070.00412.63
5.6.260.0100.00312.64
5.6.250.0060.00612.60
5.6.240.0070.00412.88
5.6.230.0110.00012.78
5.6.220.0120.00012.59
5.6.210.0050.04016.54
5.6.200.0090.02915.55
5.6.190.0130.04016.66
5.6.180.0080.02116.62
5.6.170.0190.03216.65
5.6.160.0040.02416.62
5.6.150.0110.03715.53
5.6.140.0090.02015.36
5.6.130.0050.03015.56
5.6.120.0070.02216.82
5.6.110.0060.02217.01
5.6.100.0110.03816.67
5.6.90.0110.04016.98
5.6.80.0070.04216.47
5.6.70.2310.02216.52
5.6.60.0060.00612.76
5.6.50.0040.00812.45
5.6.40.0100.00412.79
5.6.30.0060.00612.56
5.6.20.0060.00612.41
5.6.10.0070.00512.42
5.6.00.0050.00912.50
5.5.380.0130.00012.87
5.5.370.0090.00312.57
5.5.360.0070.00512.69
5.5.350.0090.04416.37
5.5.340.0070.04515.21
5.5.330.0060.03516.54
5.5.320.0100.03816.60
5.5.310.0160.03816.41
5.5.300.0080.02315.26
5.5.290.0060.05115.31
5.5.280.0160.03516.73
5.5.270.0050.02416.78
5.5.260.0030.02816.63
5.5.250.0120.03116.76
5.5.240.0220.03316.37
5.5.230.0120.00012.67
5.5.220.0090.00312.63
5.5.210.0050.00612.70
5.5.200.0090.00212.54
5.5.190.0080.00312.49
5.5.180.0110.00012.63
5.5.170.0110.00012.54
5.5.160.0080.00312.62
5.5.150.0110.00012.25
5.5.140.0070.00412.22
5.5.130.0090.00212.30
5.5.120.0120.00012.38
5.5.110.0130.00012.34
5.5.100.0080.00312.67
5.5.90.0080.00412.64
5.5.80.0060.00612.76
5.5.70.0110.00012.48
5.5.60.0110.00012.64
5.5.50.0110.00012.44
5.5.40.0050.00512.64
5.5.30.0060.00612.79
5.5.20.0040.00712.70
5.5.10.0070.00412.37
5.5.00.0040.00712.43
5.4.450.0200.02016.09
5.4.440.0240.02816.05
5.4.430.0330.02116.08
5.4.420.0150.02416.07
5.4.410.0110.01715.95
5.4.400.0360.02015.78
5.4.390.0360.03215.77
5.4.380.0210.03515.64
5.4.370.0190.03215.49
5.4.360.0220.02815.74
5.4.350.0170.03615.60
5.4.340.0160.04015.61
5.4.330.0120.00012.56
5.4.320.0060.02612.62
5.4.310.0110.02612.65
5.4.300.0060.02312.57
5.4.290.0060.02512.66
5.4.280.0060.02212.54
5.4.270.0060.02212.56
5.4.260.0100.02112.53
5.4.250.0070.02412.50
5.4.240.0090.02012.54
5.4.230.0050.02512.47
5.4.220.0060.02412.47
5.4.210.0070.02012.42
5.4.200.0070.02112.39
5.4.190.0060.02312.34
5.4.180.0100.01812.29
5.4.170.0090.02112.43
5.4.160.0080.02012.41
5.4.150.0060.02112.50
5.4.140.0080.02212.41
5.4.130.0050.02512.33
5.4.120.0080.02012.37
5.4.110.0060.02112.25
5.4.100.0050.02212.23
5.4.90.0090.01912.33
5.4.80.0090.02612.41
5.4.70.0080.02012.32
5.4.60.0070.02012.21
5.4.50.0080.02112.27
5.4.40.0070.01912.28
5.4.30.0080.02212.39
5.4.20.0080.02012.33
5.4.10.0060.02212.32
5.4.00.0050.02211.98
5.3.290.0080.02112.99
5.3.280.0100.01912.83
5.3.270.0060.02312.83
5.3.260.0070.02212.88
5.3.250.0080.02212.96
5.3.240.0040.02412.86
5.3.230.0090.01912.92
5.3.220.0080.02112.85
5.3.210.0100.02112.81
5.3.200.0110.02012.70
5.3.190.0080.01912.74
5.3.180.0090.01912.86
5.3.170.0080.01912.78
5.3.160.0050.02212.86
5.3.150.0070.02212.91
5.3.140.0040.02512.90
5.3.130.0080.02112.86
5.3.120.0070.02112.74
5.3.110.0100.02712.85
5.3.100.0080.02212.52
5.3.90.0090.01812.63
5.3.80.0100.01812.57
5.3.70.0070.02012.42
5.3.60.0050.02512.57
5.3.50.0040.02512.54
5.3.40.0070.02012.50
5.3.30.0050.02212.54
5.3.20.0060.02112.27
5.3.10.0080.01912.24
5.3.00.0080.01912.25
5.2.170.0080.01510.72
5.2.160.0070.01510.53
5.2.150.0060.01910.56
5.2.140.0080.01510.55
5.2.130.0040.01810.58
5.2.120.0050.01810.66
5.2.110.0070.01610.64
5.2.100.0070.01610.55
5.2.90.0060.01610.66
5.2.80.0080.01610.59
5.2.70.0060.01710.64
5.2.60.0030.02110.42
5.2.50.0070.02010.44
5.2.40.0090.01410.45
5.2.30.0030.01910.48
5.2.20.0040.01710.35
5.2.10.0070.01310.27
5.2.00.0070.01410.30
5.1.60.0050.0149.46
5.1.50.0040.0149.45
5.1.40.0050.0149.64
5.1.30.0080.0129.73
5.1.20.0060.0139.68
5.1.10.0050.0149.71
5.1.00.0060.0139.61
5.0.50.0050.0118.52
5.0.40.0030.0158.44
5.0.30.0040.0168.35
5.0.20.0040.0118.34
5.0.10.0040.0118.32
5.0.00.0040.0168.32
4.4.90.0030.0097.58
4.4.80.0030.0087.57
4.4.70.0000.0117.57
4.4.60.0030.0087.57
4.4.50.0030.0087.57
4.4.40.0040.0137.54
4.4.30.0030.0107.57
4.4.20.0010.0107.61
4.4.10.0040.0077.61
4.4.00.0030.0147.57
4.3.110.0030.0087.52
4.3.100.0040.0077.52
4.3.90.0040.0077.51
4.3.80.0030.0137.48
4.3.70.0020.0087.51
4.3.60.0010.0107.50
4.3.50.0020.0097.50
4.3.40.0040.0127.46
4.3.30.0010.0106.85
4.3.20.0020.0096.83
4.3.10.0030.0086.81
4.3.00.0020.01014.39

preferences:
42.8 ms | 401 KiB | 5 Q