3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('/etc/httpd'), 1, 16); foreach ($iterator as $path) { print $path->__toString() . PHP_EOL; }

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.00718.30
8.3.50.0130.00322.03
8.3.40.0110.00418.85
8.3.30.0000.01419.14
8.3.20.0070.00020.30
8.3.10.0080.00022.09
8.3.00.0060.00320.64
8.2.180.0150.00016.63
8.2.170.0090.00622.96
8.2.160.0110.00719.13
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00726.16
8.2.120.0040.00419.36
8.2.110.0030.00722.16
8.2.100.0060.00617.84
8.2.90.0000.00819.13
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0000.00917.93
8.2.50.0070.00418.07
8.2.40.0030.00519.66
8.2.30.0040.00417.89
8.2.20.0030.00517.55
8.2.10.0000.00817.70
8.2.00.0030.00617.57
8.1.280.0030.01025.92
8.1.270.0030.00622.21
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00619.13
8.1.230.0060.00617.51
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00917.13
8.1.190.0060.00317.11
8.1.180.0000.00718.60
8.1.170.0040.00418.33
8.1.160.0040.00422.21
8.1.150.0040.00418.52
8.1.140.0000.00817.30
8.1.130.0040.00417.75
8.1.120.0050.00217.37
8.1.110.0040.00417.23
8.1.100.0030.00317.27
8.1.90.0030.00317.32
8.1.80.0000.00717.39
8.1.70.0050.00217.25
8.1.60.0060.00317.50
8.1.50.0080.00017.48
8.1.40.0040.00417.51
8.1.30.0000.00817.48
8.1.20.0040.00417.51
8.1.10.0040.00417.42
8.1.00.0000.00717.38
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0080.00017.15
8.0.260.0060.00016.89
8.0.250.0000.00817.05
8.0.240.0040.00416.94
8.0.230.0000.00816.96
8.0.220.0000.00716.94
8.0.210.0000.00716.88
8.0.200.0030.00316.85
8.0.190.0000.00716.98
8.0.180.0040.00416.82
8.0.170.0050.00216.87
8.0.160.0040.00416.85
8.0.150.0040.00416.93
8.0.140.0070.00016.79
8.0.130.0030.00313.33
8.0.120.0050.00316.86
8.0.110.0000.00716.87
8.0.100.0000.00716.80
8.0.90.0000.00816.82
8.0.80.0090.00616.88
8.0.70.0030.00516.91
8.0.60.0040.00416.74
8.0.50.0040.00416.93
8.0.30.0110.01217.03
8.0.20.0080.01017.40
8.0.10.0050.00317.03
8.0.00.0130.00516.69
7.4.330.0000.00515.00
7.4.320.0030.00316.46
7.4.300.0000.00616.33
7.4.290.0000.00716.56
7.4.280.0000.00716.50
7.4.270.0030.00316.32
7.4.260.0030.00316.50
7.4.250.0000.00816.42
7.4.240.0060.00216.52
7.4.230.0000.00716.61
7.4.220.0070.01116.52
7.4.210.0090.00816.50
7.4.200.0030.00316.59
7.4.190.0070.00016.52
7.4.160.0120.00816.45
7.4.150.0060.01117.40
7.4.140.0090.01017.86
7.4.130.0070.01216.61
7.4.120.0100.01116.41
7.4.110.0070.01016.66
7.4.100.0040.01516.53
7.4.90.0120.00616.66
7.4.80.0030.01719.39
7.4.70.0160.00316.56
7.4.60.0100.01316.55
7.4.50.0000.00616.58
7.4.40.0120.00322.77
7.4.30.0100.00616.41
7.4.00.0080.00614.96
7.3.330.0060.00013.18
7.3.320.0030.00313.21
7.3.310.0030.00316.27
7.3.300.0030.00316.30
7.3.290.0140.00016.32
7.3.280.0080.00816.31
7.3.270.0080.00817.40
7.3.260.0100.00716.20
7.3.250.0100.00816.41
7.3.240.0130.00616.28
7.3.230.0120.01116.44
7.3.210.0070.01016.54
7.3.200.0100.00719.39
7.3.190.0060.01216.29
7.3.180.0060.00916.34
7.3.170.0100.01016.42
7.3.160.0050.01316.39
7.3.120.0100.00614.78
7.3.00.0110.00316.64
7.2.330.0060.01016.53
7.2.320.0130.00616.29
7.2.310.0160.00016.40
7.2.300.0000.01616.54
7.2.290.0040.01116.50
7.2.130.0060.00916.60
7.2.120.0000.01016.82
7.2.110.0060.01216.73
7.2.100.0000.01216.63
7.2.90.0090.00916.67
7.2.80.0040.01116.59
7.2.70.0120.00316.80
7.2.60.0060.00616.77
7.2.50.0050.00516.85
7.2.40.0030.01216.66
7.2.30.0100.00316.77
7.2.20.0070.00716.89
7.2.10.0070.01116.80
7.2.00.0100.00618.00
7.1.250.0030.01015.40
7.1.240.0070.00715.61
7.1.230.0030.00815.71
7.1.220.0060.00615.75
7.1.210.0040.00415.59
7.1.200.0080.00715.64
7.1.190.0090.00315.31
7.1.180.0030.01015.72
7.1.170.0030.01015.63
7.1.160.0060.00615.70
7.1.150.0000.01415.39
7.1.140.0060.00715.50
7.1.130.0060.00915.72
7.1.120.0000.00815.79
7.1.110.0040.01115.39
7.1.100.0060.00816.92
7.1.90.0070.00715.64
7.1.80.0080.00815.48
7.1.70.0030.01016.20
7.1.60.0080.00817.71
7.1.50.0070.01216.24
7.1.40.0040.01415.73
7.1.30.0040.01115.34
7.1.20.0040.01215.67
7.1.10.0060.00615.60
7.1.00.0000.04619.03
7.0.330.0000.00814.94
7.0.320.0060.00915.32
7.0.310.0040.01115.27
7.0.300.0130.00015.32
7.0.290.0040.00415.27
7.0.280.0040.00415.11
7.0.270.0100.00015.27
7.0.260.0030.01315.01
7.0.250.0040.00415.21
7.0.240.0000.01215.23
7.0.230.0090.00615.34
7.0.220.0080.00515.00
7.0.210.0120.00315.41
7.0.200.0140.00315.89
7.0.190.0030.01015.21
7.0.180.0040.00715.30
7.0.170.0030.00715.26
7.0.160.0060.00315.15
7.0.150.0000.01415.03
7.0.140.0050.03818.49
7.0.130.0040.00415.21
7.0.120.0000.01015.33
7.0.110.0070.00715.25
7.0.100.0200.03517.50
7.0.90.0130.02617.55
7.0.80.0170.02317.54
7.0.70.0090.03117.51
7.0.60.0070.03017.59
7.0.50.0060.03117.89
7.0.40.0020.02516.78
7.0.30.0110.02516.50
7.0.20.0070.02316.49
7.0.10.0030.04516.60
7.0.00.0050.02816.72
5.6.380.0000.00914.09
5.6.370.0000.01313.96
5.6.360.0060.00914.21
5.6.350.0040.00814.36
5.6.340.0000.01514.29
5.6.330.0030.01414.29
5.6.320.0090.00614.09
5.6.310.0130.00014.19
5.6.300.0040.00414.17
5.6.290.0090.00614.24
5.6.280.0050.03817.44
5.6.270.0030.00914.34
5.6.260.0030.00714.14
5.6.250.0070.04217.48
5.6.240.0040.02917.35
5.6.230.0050.02517.32
5.6.220.0080.04017.31
5.6.210.0030.03217.18
5.6.200.0060.02417.55
5.6.190.0030.02817.37
5.6.180.0030.03517.51
5.6.170.0030.02717.50
5.6.160.0090.01817.68
5.6.150.0060.02017.69
5.6.140.0000.02617.55
5.6.130.0070.03417.68
5.6.120.0070.02217.60
5.6.110.0060.02317.69
5.6.100.0070.02817.80
5.6.90.0050.02617.82
5.6.80.0020.03617.22
5.6.70.0030.02717.33
5.6.60.0040.02517.24
5.6.50.0030.03017.17
5.6.40.0040.02417.13
5.6.30.0100.02517.21
5.6.20.0060.02317.43
5.6.10.0020.02417.28
5.6.00.0030.02517.30
5.5.380.0060.02115.73
5.5.370.0000.03315.64
5.5.360.0030.02315.74
5.5.350.0090.02215.82
5.5.340.0080.02315.95
5.5.330.0020.02515.92
5.5.320.0030.02315.92
5.5.310.0030.03115.89
5.5.300.0060.02116.03
5.5.290.0050.02415.88
5.5.280.0050.04016.05
5.5.270.0070.02515.95
5.5.260.0020.02615.99
5.5.250.0000.02715.86
5.5.240.0040.03215.64
5.5.230.0050.02515.65
5.5.220.0030.02115.58
5.5.210.0050.02215.63
5.5.200.0080.02015.62
5.5.190.0020.02315.64
5.5.180.0020.02515.64
5.5.170.0030.00511.00
5.5.160.0020.02315.55
5.5.150.0070.02015.58
5.5.140.0020.02415.64
5.5.130.0020.02215.61
5.5.120.0050.02215.63
5.5.110.0060.01815.54
5.5.100.0020.03215.61
5.5.90.0030.02215.55
5.5.80.0030.02915.54
5.5.70.0040.02915.49
5.5.60.0030.02415.58
5.5.50.0050.02215.54
5.5.40.0070.01815.47
5.5.30.0060.02315.57
5.5.20.0050.02715.48
5.5.10.0080.02015.51
5.5.00.0050.02015.51
5.4.450.0070.03715.21
5.4.440.0070.02515.18
5.4.430.0000.02615.18
5.4.420.0030.02215.21
5.4.410.0080.02015.22
5.4.400.0030.02215.11
5.4.390.0020.02315.11
5.4.380.0100.01715.06
5.4.370.0090.01715.06
5.4.360.0050.02215.02
5.4.350.0020.02114.93
5.4.340.0050.02015.00
5.4.330.0040.00411.00
5.4.320.0030.02515.12
5.4.310.0030.02015.02
5.4.300.0030.02215.07
5.4.290.0020.02515.13
5.4.280.0070.03815.11
5.4.270.0040.02415.02
5.4.260.0070.04214.94
5.4.250.0070.01815.10
5.4.240.0020.02315.01
5.4.230.0020.02315.12
5.4.220.0020.02615.04
5.4.210.0050.02114.93
5.4.200.0020.02315.08
5.4.190.0040.02715.02
5.4.180.0030.04114.92
5.4.170.0070.03814.97
5.4.160.0010.02414.92
5.4.150.0030.02215.08
5.4.140.0000.02513.56
5.4.130.0070.01913.56
5.4.120.0030.02213.67
5.4.110.0070.03813.74
5.4.100.0050.02013.70
5.4.90.0040.02313.75
5.4.80.0030.02213.69
5.4.70.0050.02013.74
5.4.60.0030.02013.66
5.4.50.0020.02113.68
5.4.40.0020.02413.77
5.4.30.0020.02213.67
5.4.20.0030.02313.73
5.4.10.0060.01813.66
5.4.00.0060.01813.39
5.3.290.0040.02212.83
5.3.280.0050.02512.82
5.3.270.0030.02212.83
5.3.260.0070.01712.77
5.3.250.0010.02112.77
5.3.240.0000.02612.86
5.3.230.0040.02012.85
5.3.220.0030.02112.78
5.3.210.0030.04212.82
5.3.200.0020.02312.79
5.3.190.0010.02112.84
5.3.180.0020.02712.84
5.3.170.0020.03312.84
5.3.160.0020.02412.77
5.3.150.0020.02512.84
5.3.140.0030.02012.80
5.3.130.0090.02312.82
5.3.120.0050.02212.84
5.3.110.0020.04212.84
5.3.100.0070.02212.48
5.3.90.0020.02212.54
5.3.80.0020.03412.46
5.3.70.0060.03812.50
5.3.60.0080.02512.50
5.3.50.0030.03012.48
5.3.40.0020.02512.51
5.3.30.0000.02812.50
5.3.20.0070.01812.38
5.3.10.0020.02912.34
5.3.00.0030.02212.38
5.2.170.0030.01611.00
5.2.160.0000.01811.14
5.2.150.0030.02711.09
5.2.140.0050.02411.03
5.2.130.0000.01911.02
5.2.120.0010.01711.01
5.2.110.0020.02211.06
5.2.100.0030.01510.98
5.2.90.0030.02911.06
5.2.80.0020.02811.01
5.2.70.0050.02311.01
5.2.60.0020.02810.98
5.2.50.0030.03111.08
5.2.40.0050.02810.99
5.2.30.0070.03210.96
5.2.20.0030.01711.04
5.2.10.0010.01810.96
5.2.00.0020.01610.91
5.1.60.0060.01010.55
5.1.50.0040.01710.44
5.1.40.0050.01310.54
5.1.30.0010.02310.62
5.1.20.0030.01610.72
5.1.10.0030.01510.56
5.1.00.0030.02510.46
5.0.50.0040.0129.79
5.0.40.0040.0109.74
5.0.30.0000.0259.66
5.0.20.0020.0129.63
5.0.10.0020.0109.58
5.0.00.0020.0159.58
4.4.90.0030.0089.58
4.4.80.0000.0229.58
4.4.70.0050.0079.58
4.4.60.0020.0209.58
4.4.50.0030.0129.58
4.4.40.0020.0179.58
4.4.30.0030.0179.58
4.4.20.0020.0099.58
4.4.10.0020.0149.58
4.4.00.0010.0159.58
4.3.110.0000.0119.58
4.3.100.0010.0119.58
4.3.90.0030.0089.58
4.3.80.0020.0149.58
4.3.70.0050.0079.58
4.3.60.0000.0109.58
4.3.50.0020.0109.58
4.3.40.0080.0099.58
4.3.30.0020.0109.58
4.3.20.0010.0099.58
4.3.10.0030.0109.58
4.3.00.0000.0139.58

preferences:
36.84 ms | 401 KiB | 5 Q