3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { /*** freds home directory ***/ $rdi = new recursiveDirectoryIterator('/home/fred', FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS); $it = new recursiveIteratorIterator( $rdi ); $it->seek(2); while( $it->valid()) { if( $it->isFile() ) { echo $it->current()."\n"; } /*** move to the next element ***/ $it->next(); } $it->rewind(); echo $it->current(); } catch(Exception $e) { /*** echo the error message ***/ echo $e->getMessage(); } ?>

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.0100.01016.75
8.3.50.0070.01421.98
8.3.40.0120.00318.82
8.3.30.0070.00719.23
8.3.20.0000.00720.25
8.3.10.0040.00423.71
8.3.00.0080.00019.13
8.2.180.0160.00316.75
8.2.170.0100.00722.96
8.2.160.0090.00620.32
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.01126.16
8.2.120.0000.00822.31
8.2.110.0050.00522.25
8.2.100.0070.00417.84
8.2.90.0000.00719.22
8.2.80.0060.00317.97
8.2.70.0090.00017.75
8.2.60.0110.00017.80
8.2.50.0030.00618.07
8.2.40.0000.00918.16
8.2.30.0040.00418.17
8.2.20.0000.00717.72
8.2.10.0000.00718.08
8.2.00.0030.00717.61
8.1.280.0030.01725.92
8.1.270.0060.00322.18
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0080.00023.93
8.1.230.0040.00719.16
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0060.00317.55
8.1.180.0050.00318.10
8.1.170.0040.00418.53
8.1.160.0040.00422.06
8.1.150.0070.00018.59
8.1.140.0000.00717.44
8.1.130.0030.00317.87
8.1.120.0000.00717.41
8.1.110.0040.00417.34
8.1.100.0000.00717.40
8.1.90.0070.00017.43
8.1.80.0040.00417.46
8.1.70.0030.00317.44
8.1.60.0080.00017.59
8.1.50.0000.00917.45
8.1.40.0000.00717.46
8.1.30.0040.00417.63
8.1.20.0040.00417.63
8.1.10.0000.00817.57
8.1.00.0080.00017.42
8.0.300.0020.00518.77
8.0.290.0040.00417.04
8.0.280.0030.00318.40
8.0.270.0030.00317.34
8.0.260.0000.00617.23
8.0.250.0030.00317.04
8.0.240.0000.00716.96
8.0.230.0070.00016.98
8.0.220.0000.00716.90
8.0.210.0050.00216.80
8.0.200.0000.00616.89
8.0.190.0000.00816.91
8.0.180.0080.00016.93
8.0.170.0030.00517.01
8.0.160.0040.00416.95
8.0.150.0040.00416.75
8.0.140.0050.00216.86
8.0.130.0030.00313.39
8.0.120.0030.00616.87
8.0.110.0040.00416.82
8.0.100.0050.00216.81
8.0.90.0050.00317.04
8.0.80.0070.00716.90
8.0.70.0000.00716.82
8.0.60.0070.00016.81
8.0.50.0040.00416.88
8.0.30.0110.00917.05
8.0.20.0100.00817.40
8.0.10.0040.00417.01
8.0.00.0140.01116.73
7.4.330.0030.00315.09
7.4.320.0030.00316.64
7.4.300.0060.00016.58
7.4.290.0040.00416.66
7.4.280.0000.00716.68
7.4.270.0000.00716.64
7.4.260.0000.00716.63
7.4.250.0000.00716.60
7.4.240.0030.00316.47
7.4.230.0030.00316.48
7.4.220.0180.00716.75
7.4.210.0100.00716.56
7.4.200.0030.00316.66
7.4.190.0000.00816.53
7.4.160.0060.00916.46
7.4.150.0060.01317.40
7.4.140.0150.00717.86
7.4.130.0120.00516.71
7.4.120.0080.00916.65
7.4.110.0070.01016.76
7.4.100.0070.01416.54
7.4.90.0110.00716.59
7.4.80.0110.01119.39
7.4.70.0140.01016.46
7.4.60.0090.00916.62
7.4.50.0000.00516.41
7.4.40.0050.00822.77
7.4.30.0100.00716.45
7.4.00.0060.00915.14
7.3.330.0000.00513.24
7.3.320.0060.00013.13
7.3.310.0070.00016.13
7.3.300.0030.00316.27
7.3.290.0100.01116.41
7.3.280.0070.01116.33
7.3.270.0030.01417.40
7.3.260.0120.00916.40
7.3.250.0060.01516.36
7.3.240.0110.00616.58
7.3.230.0060.01016.56
7.3.210.0030.01316.52
7.3.200.0110.00616.40
7.3.190.0140.00616.41
7.3.180.0160.00016.34
7.3.170.0080.00816.47
7.3.160.0060.00916.48
7.3.120.0040.00815.00
7.3.10.0060.00616.73
7.3.00.0110.00416.43
7.2.330.0100.00716.25
7.2.320.0100.00716.82
7.2.310.0000.01716.75
7.2.300.0080.00916.68
7.2.290.0120.00616.54
7.2.130.0030.00716.91
7.2.120.0070.00716.73
7.2.110.0110.00016.95
7.2.100.0000.01616.81
7.2.90.0100.00316.83
7.2.80.0070.00716.75
7.2.70.0030.01216.92
7.2.60.0060.00616.87
7.2.50.0030.00916.70
7.2.40.0030.01016.86
7.2.30.0030.01317.08
7.2.20.0110.00316.97
7.2.10.0070.00716.68
7.2.00.0050.00918.15
7.1.250.0060.00915.83
7.1.200.0030.01015.80
7.1.100.0060.00618.11
7.1.70.0000.01016.89
7.1.60.0100.01419.46
7.1.50.0120.00616.96
7.1.00.0100.07022.54
7.0.200.0090.00616.66
7.0.140.0000.07321.95
7.0.60.0100.08319.79
7.0.50.0070.08317.79
7.0.40.0130.08020.40
7.0.30.0430.06720.09
7.0.20.0200.04320.12
7.0.10.0000.04320.12
7.0.00.0130.07320.19
5.6.280.0100.06721.09
5.6.210.0070.03720.50
5.6.200.0100.08018.17
5.6.190.0070.08320.61
5.6.180.0200.04320.45
5.6.170.0270.08020.40
5.6.160.0100.04020.49
5.6.150.0070.07718.15
5.6.140.0100.07718.08
5.6.130.0030.08318.21
5.6.120.0030.06720.98
5.6.110.0070.08020.97
5.6.100.0070.03720.97
5.6.90.0070.08721.13
5.6.80.0030.05720.38
5.6.70.4400.04020.38
5.5.350.0070.06720.30
5.5.340.0100.05717.98
5.5.330.0000.04720.43
5.5.320.0370.07020.29
5.5.310.0330.05020.33
5.5.300.0100.07717.87
5.5.290.0070.04017.91
5.5.280.0100.08720.65
5.5.270.0030.07020.86
5.5.260.0170.07320.89
5.5.250.0130.07320.61
5.5.240.0300.07320.26
5.4.450.0870.04719.10
5.4.440.0930.05719.45
5.4.430.0130.05019.32
5.4.420.0630.00019.45
5.4.410.0070.05718.79
5.4.400.0170.05318.73
5.4.390.0200.05018.68
5.4.380.0270.05018.70
5.4.370.0130.05018.45
5.4.360.0170.04318.65
5.4.350.0040.03711.99
5.4.340.0050.03711.99
5.4.320.0070.03412.47
5.4.310.0050.04512.47
5.4.300.0050.03612.47
5.4.290.0110.05112.47
5.4.280.0150.04412.34
5.4.270.0100.04712.34
5.4.260.0080.04512.34
5.4.250.0100.04812.34
5.4.240.0090.04412.34
5.4.230.0120.04412.33
5.4.220.0090.06512.34
5.4.210.0090.03712.33
5.4.200.0090.04312.34
5.4.190.0070.03912.33
5.4.180.0130.07112.33
5.4.170.0070.03712.34
5.4.160.0080.03412.34
5.4.150.0090.03712.33
5.4.140.0080.03812.02
5.4.130.0070.04212.00
5.4.120.0090.03711.96
5.4.110.0140.03411.96
5.4.100.0120.04311.96
5.4.90.0100.05411.95
5.4.80.0050.05511.96
5.4.70.0050.03611.95
5.4.60.0070.05111.95
5.4.50.0110.04711.95
5.4.40.0050.04911.94
5.4.30.0090.03611.94
5.4.20.0050.05411.94
5.4.10.0080.03411.94
5.4.00.0040.04011.43
5.3.290.0070.03912.80
5.3.280.0070.04912.71
5.3.270.0090.03912.72
5.3.260.0080.03912.72
5.3.250.0090.04012.72
5.3.240.0090.03512.72
5.3.230.0100.03612.71
5.3.220.0120.03512.68
5.3.210.0070.03812.68
5.3.200.0100.03712.68
5.3.190.0110.03712.68
5.3.180.0100.03812.67
5.3.170.0090.03612.67
5.3.160.0090.05212.67
5.3.150.0090.03712.67
5.3.140.0130.03212.66
5.3.130.0090.05512.66
5.3.120.0080.04012.66
5.3.110.0090.04312.66
5.3.100.0060.03812.12
5.3.90.0060.03812.09
5.3.80.0050.04412.07
5.3.70.0100.03512.07
5.3.60.0100.03412.06
5.3.50.0060.03712.00
5.3.40.0070.03612.00
5.3.30.0090.03411.95
5.3.20.0060.03811.72
5.3.10.0070.03411.69
5.3.00.0060.03811.68
5.2.170.0070.0289.16
5.2.160.0080.0329.16
5.2.150.0050.0459.16
5.2.140.0030.0339.16
5.2.130.0060.0299.12
5.2.120.0060.0279.12
5.2.110.0060.0319.13
5.2.100.0060.0439.13
5.2.90.0080.0359.12
5.2.80.0110.0439.11
5.2.70.0060.0449.12
5.2.60.0070.0319.07
5.2.50.0080.0289.04
5.2.40.0060.0329.01
5.2.30.0040.0348.99
5.2.20.0080.0308.98
5.2.10.0090.0298.90
5.2.00.0070.0348.77
5.1.60.0090.0388.05
5.1.50.0060.0388.05
5.1.40.0060.0298.04
5.1.30.0080.0408.38
5.1.20.0060.0288.40
5.1.10.0090.0418.13
5.1.00.0080.0378.13
5.0.50.0040.0316.60
5.0.40.0080.0226.46
5.0.30.0090.0656.28
5.0.20.0060.0246.25
5.0.10.0050.0226.23
5.0.00.0050.0426.22
4.4.90.0140.0284.78
4.4.80.0040.0224.76
4.4.70.0040.0174.75
4.4.60.0030.0174.75
4.4.50.0020.0194.77
4.4.40.0040.0264.71
4.4.30.0020.0174.76
4.4.20.0030.0174.84
4.4.10.0030.0174.85
4.4.00.0040.0274.76
4.3.110.0060.0154.67
4.3.100.0040.0224.67
4.3.90.0040.0154.64
4.3.80.0060.0264.58
4.3.70.0060.0194.63
4.3.60.0040.0264.63
4.3.50.0040.0244.63
4.3.40.0050.0354.53
4.3.30.0030.0213.27
4.3.20.0040.0193.25
4.3.10.0030.0203.21
4.3.00.0030.0236.54

preferences:
48.18 ms | 401 KiB | 5 Q