3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP $path = $_SERVER['DOCUMENT_ROOT']; $dir = "."; echo '<table width="80%" border="1"> <tr> <td align="right">Path :</td> <td><a href="'.$path.'">Parent directory</a></td> <td>3</td> </tr>'; // Sort in ascending order - this is default $a = scandir($dir); foreach($a as $key => $value) { echo' <tr> <td>'.$value.'</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr>'; } echo '</table>'; ?>

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.0040.01116.63
8.3.60.0130.00718.43
8.3.50.0090.01021.08
8.3.40.0070.01118.83
8.3.30.0110.00419.09
8.3.20.0050.00220.25
8.3.10.0040.00422.15
8.3.00.0040.00422.39
8.2.180.0040.01116.50
8.2.170.0120.00322.96
8.2.160.0100.00719.20
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0140.00026.16
8.2.120.0080.00019.90
8.2.110.0040.00422.43
8.2.100.0120.00019.64
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0030.00618.16
8.2.50.0030.00518.07
8.2.40.0040.00418.34
8.2.30.0070.00018.18
8.2.20.0040.00417.68
8.2.10.0030.00517.81
8.2.00.0000.00817.64
8.1.280.0090.00625.92
8.1.270.0040.00418.48
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0040.00719.17
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0000.00817.51
8.1.180.0040.00418.70
8.1.170.0040.00418.74
8.1.160.0040.00422.24
8.1.150.0040.00418.57
8.1.140.0000.00717.46
8.1.130.0030.00317.89
8.1.120.0000.00717.48
8.1.110.0030.00617.41
8.1.100.0000.00717.41
8.1.90.0040.00417.39
8.1.80.0000.00717.46
8.1.70.0000.00717.46
8.1.60.0000.00817.59
8.1.50.0050.00317.56
8.1.40.0000.00717.55
8.1.30.0030.00617.57
8.1.20.0060.00317.68
8.1.10.0050.00217.61
8.1.00.0040.00417.54
8.0.300.0000.00718.77
8.0.290.0060.00317.16
8.0.280.0080.00018.34
8.0.270.0000.00717.21
8.0.260.0000.00616.92
8.0.250.0030.00316.90
8.0.240.0000.00716.97
8.0.230.0030.00316.90
8.0.220.0070.00016.86
8.0.210.0040.00416.97
8.0.200.0000.00817.08
8.0.190.0000.00817.03
8.0.180.0070.00017.04
8.0.170.0000.00717.00
8.0.160.0030.00517.01
8.0.150.0030.00516.95
8.0.140.0050.00216.95
8.0.130.0000.00513.29
8.0.120.0020.00815.12
8.0.110.0050.00615.09
8.0.100.0070.00415.09
8.0.90.0070.00315.19
8.0.80.0050.01015.06
8.0.70.0060.00415.05
8.0.60.0060.00415.16
8.0.50.0090.00115.05
8.0.30.0100.00615.73
8.0.20.0130.00416.06
8.0.10.0080.00315.26
8.0.00.0070.00715.69
7.4.330.0020.00215.00
7.4.320.0000.00616.59
7.4.300.0030.00316.63
7.4.290.0050.00316.45
7.4.280.0030.00316.68
7.4.270.0070.00016.68
7.4.260.0000.00716.62
7.4.250.0080.00314.88
7.4.240.0080.00215.47
7.4.230.0060.00514.86
7.4.220.0090.00614.96
7.4.210.0070.01015.76
7.4.200.0030.00715.00
7.4.190.0080.00315.04
7.4.180.0060.00813.32
7.4.160.0090.00815.03
7.4.150.0100.00515.35
7.4.140.0090.00816.31
7.4.130.0050.00915.47
7.4.120.0100.00715.51
7.4.110.0060.00914.88
7.4.100.0070.00814.85
7.4.90.0060.00914.88
7.4.80.0070.00816.32
7.4.70.0090.00514.91
7.4.60.0080.00614.88
7.4.50.0060.00414.87
7.4.40.0060.00917.89
7.4.30.0110.00414.81
7.4.20.0070.00413.30
7.4.10.0080.00714.07
7.4.00.0080.00714.64
7.3.330.0030.00313.26
7.3.320.0030.00313.20
7.3.310.0070.00314.87
7.3.300.0060.00414.83
7.3.290.0070.00614.81
7.3.280.0070.00715.61
7.3.270.0130.00215.35
7.3.260.0030.01114.77
7.3.250.0090.00615.44
7.3.240.0120.00314.86
7.3.230.0150.00114.84
7.3.220.0090.00313.20
7.3.210.0070.00714.83
7.3.200.0100.00816.28
7.3.190.0080.00814.74
7.3.180.0070.00814.80
7.3.170.0090.00814.72
7.3.160.0080.00614.75
7.3.150.0130.00013.17
7.3.140.0080.00413.01
7.3.130.0130.00313.91
7.3.120.0070.00814.63
7.3.110.0050.01114.32
7.3.100.0090.00514.41
7.3.90.0100.00414.55
7.3.80.0060.00714.37
7.3.70.0080.00614.40
7.3.60.0080.00614.49
7.3.50.0080.00414.52
7.3.40.0070.00614.52
7.3.30.0060.00614.33
7.3.20.0070.00616.24
7.3.10.0080.00816.27
7.3.00.0100.00616.30
7.2.340.0080.00413.27
7.2.330.0060.01014.99
7.2.320.0070.00914.93
7.2.310.0090.00614.88
7.2.300.0090.00514.95
7.2.290.0140.00114.95
7.2.280.0090.00413.11
7.2.270.0090.00413.21
7.2.260.0090.00714.15
7.2.250.0060.01114.57
7.2.240.0040.01314.59
7.2.230.0050.01014.68
7.2.220.0050.00914.62
7.2.210.0060.00614.74
7.2.200.0080.00514.62
7.2.190.0060.00814.53
7.2.180.0060.00714.56
7.2.170.0070.00814.75
7.2.160.0110.00014.21
7.2.150.0080.00416.13
7.2.140.0120.00216.07
7.2.130.0110.00716.30
7.2.120.0060.01016.36
7.2.110.0110.00516.35
7.2.100.0070.01016.22
7.2.90.0070.00916.27
7.2.80.0110.00516.49
7.2.70.0130.00416.55
7.2.60.0070.01016.54
7.2.50.0070.00716.37
7.2.40.0050.01116.38
7.2.30.0100.00616.53
7.2.20.0090.01116.44
7.2.10.0120.00616.43
7.2.00.0080.00817.16
7.1.330.0080.00415.23
7.1.320.0060.00715.30
7.1.310.0060.00815.39
7.1.300.0070.00515.39
7.1.290.0040.00815.43
7.1.280.0070.00615.38
7.1.270.0050.00715.31
7.1.260.0050.00915.37
7.1.250.0050.00914.99
7.1.240.0050.00715.13
7.1.230.0050.00615.36
7.1.220.0050.00815.20
7.1.210.0060.00715.23
7.1.200.0070.00715.46
7.1.190.0070.00615.38
7.1.180.0090.00515.13
7.1.170.0060.00615.24
7.1.160.0070.00515.22
7.1.150.0100.00215.28
7.1.140.0080.00515.34
7.1.130.0070.00515.15
7.1.120.0090.00515.15
7.1.110.0070.00715.32
7.1.100.0070.00715.98
7.1.90.0080.00515.20
7.1.80.0060.00715.28
7.1.70.0050.00815.71
7.1.60.0070.00816.36
7.1.50.0060.00915.76
7.1.40.0070.00415.27
7.1.30.0060.00715.17
7.1.20.0060.00515.10
7.1.10.0070.00415.17
7.1.00.0040.01317.09
7.0.330.0020.01014.79
7.0.320.0070.00714.90
7.0.310.0070.00514.96
7.0.300.0070.00515.06
7.0.290.0030.00714.97
7.0.280.0040.00514.84
7.0.270.0010.01014.95
7.0.260.0030.00915.00
7.0.250.0090.00315.10
7.0.240.0040.00615.04
7.0.230.0030.00714.97
7.0.220.0050.00415.11
7.0.210.0050.00515.04
7.0.200.0050.00515.25
7.0.190.0040.00515.00
7.0.180.0100.00314.96
7.0.170.0040.00714.98
7.0.160.0090.00514.93
7.0.150.0060.00514.91
7.0.140.0080.02016.77
7.0.130.0090.00514.98
7.0.120.0060.02616.73
7.0.110.0050.01916.73
7.0.100.0030.01516.69
7.0.90.0050.01616.76
7.0.80.0110.02416.72
7.0.70.0080.02316.74
7.0.60.0070.01916.76
7.0.50.0050.02716.83
7.0.40.0040.01715.29
7.0.30.0040.01615.29
7.0.20.0060.01915.31
7.0.10.0060.01915.19
7.0.00.0050.01515.29
5.6.400.0030.00913.62
5.6.390.0060.00713.50
5.6.380.0070.00613.60
5.6.370.0020.01113.64
5.6.360.0090.00313.87
5.6.350.0060.00713.97
5.6.340.0080.00313.81
5.6.330.0050.00613.69
5.6.320.0070.00313.78
5.6.310.0080.00413.88
5.6.300.0090.00413.94
5.6.290.0030.00713.79
5.6.280.0050.02515.48
5.6.270.0070.01715.58
5.6.260.0060.01515.52
5.6.250.0040.01615.64
5.6.240.0050.02515.62
5.6.230.0050.02515.54
5.6.220.0050.01615.54
5.6.210.0070.02315.63
5.6.200.0090.01415.72
5.6.190.0070.01615.46
5.6.180.0050.02015.59
5.6.170.0100.01915.56
5.6.160.0040.02415.59
5.6.150.0070.01215.55
5.6.140.0040.01615.61
5.6.130.0070.01815.67
5.6.120.0040.02315.63
5.6.110.0080.02015.63
5.6.100.0040.01615.46
5.6.90.0080.01515.52
5.6.80.0070.01215.36
5.6.70.0040.01715.38
5.6.60.0060.01515.47
5.6.50.0060.01915.39
5.6.40.0050.01615.40
5.6.30.0080.01415.42
5.6.20.0050.02015.25
5.6.10.0060.02015.32
5.6.00.0050.01515.24
5.5.380.0040.02213.95
5.5.370.0070.01913.87
5.5.360.0070.02213.77
5.5.350.0060.01413.82
5.5.340.0070.02114.10
5.5.330.0050.02013.98
5.5.320.0090.01313.96
5.5.310.0070.02314.08
5.5.300.0050.02013.95
5.5.290.0060.02213.96
5.5.280.0060.01313.91
5.5.270.0030.02114.03
5.5.260.0050.02013.95
5.5.250.0050.01314.05
5.5.240.0050.01713.84
5.5.230.0070.01413.79
5.5.220.0040.01413.75
5.5.210.0060.01913.80
5.5.200.0070.01513.80
5.5.190.0050.01813.81
5.5.180.0090.01713.80
5.5.170.0070.00513.58
5.5.160.0070.01213.71
5.5.150.0060.01213.87
5.5.140.0050.01613.78
5.5.130.0070.02013.83
5.5.120.0060.02313.65
5.5.110.0050.01713.73
5.5.100.0050.02413.62
5.5.90.0060.02213.68
5.5.80.0040.02213.81
5.5.70.0040.02213.69
5.5.60.0050.01313.85
5.5.50.0060.01213.73
5.5.40.0050.02213.85
5.5.30.0030.01813.78
5.5.20.0040.02813.82
5.5.10.0070.01713.79
5.5.00.0080.02113.69
5.4.450.0040.02313.95
5.4.440.0050.01213.93
5.4.430.0020.01513.95
5.4.420.0060.01413.84
5.4.410.0080.01213.86
5.4.400.0060.01213.84
5.4.390.0030.01513.75
5.4.380.0090.01213.78
5.4.370.0060.01213.81
5.4.360.0050.01413.73
5.4.350.0030.01413.79
5.4.340.0050.01113.71
5.4.330.0060.00512.02
5.4.320.0050.01713.79
5.4.310.0060.02013.76
5.4.300.0070.02113.78
5.4.290.0040.02313.77
5.4.280.0070.02113.75
5.4.270.0030.02513.80
5.4.260.0040.02213.70
5.4.250.0040.02313.79
5.4.240.0030.02713.80
5.4.230.0060.01213.72
5.4.220.0090.02013.68
5.4.210.0050.01313.78
5.4.200.0070.01413.81
5.4.190.0060.02113.74
5.4.180.0050.01213.71
5.4.170.0060.01113.76
5.4.160.0050.02113.72
5.4.150.0030.01513.66
5.4.140.0080.01113.09
5.4.130.0050.01113.01
5.4.120.0050.01913.14
5.4.110.0050.02313.08
5.4.100.0050.02013.05
5.4.90.0060.01113.13
5.4.80.0050.02113.14
5.4.70.0060.01113.16
5.4.60.0080.01313.11
5.4.50.0050.01713.12
5.4.40.0080.01013.04
5.4.30.0040.02213.09
5.4.20.0050.02013.04
5.4.10.0040.02413.06
5.4.00.0050.02012.82
5.3.290.0070.02212.76
5.3.280.0040.01112.75
5.3.270.0040.02512.77
5.3.260.0040.02212.74
5.3.250.0070.01912.71
5.3.240.0050.02312.67
5.3.230.0070.01912.68
5.3.220.0050.01912.71
5.3.210.0040.01612.70
5.3.200.0050.02312.71
5.3.190.0030.02112.73
5.3.180.0020.01412.82
5.3.170.0060.01212.72
5.3.160.0070.01812.75
5.3.150.0060.02012.81
5.3.140.0070.02112.78
5.3.130.0060.02212.71
5.3.120.0070.02112.69
5.3.110.0030.02312.65
5.3.100.0030.02312.59
5.3.90.0060.01512.57
5.3.80.0080.01912.58
5.3.70.0070.01812.52
5.3.60.0040.02312.54
5.3.50.0030.02412.56
5.3.40.0030.02212.63
5.3.30.0030.02212.58
5.3.20.0040.02212.52
5.3.10.0050.01912.41
5.3.00.0050.01712.46
5.2.170.0030.02111.43
5.2.160.0050.02311.38
5.2.150.0040.01811.45
5.2.140.0060.02211.33
5.2.130.0010.02211.31
5.2.120.0020.02711.37
5.2.110.0020.02011.33
5.2.100.0070.01911.28
5.2.90.0060.02211.37
5.2.80.0030.01611.34
5.2.70.0040.01911.26
5.2.60.0040.02111.29
5.2.50.0060.01311.25
5.2.40.0040.02011.37
5.2.30.0050.01711.20
5.2.20.0050.02211.21
5.2.10.0020.01611.16
5.2.00.0030.02111.09
5.1.60.0030.01910.69
5.1.50.0020.01610.62
5.1.40.0050.01810.63
5.1.30.0020.01710.89
5.1.20.0060.01510.80
5.1.10.0040.01210.79
5.1.00.0020.01210.70
5.0.50.0020.01310.38
5.0.40.0050.00810.36
5.0.30.0030.02310.36
5.0.20.0010.01310.36
5.0.10.0050.01110.36
5.0.00.0040.02010.36
4.4.90.0020.01310.36
4.4.80.0020.01110.36
4.4.70.0030.00910.36
4.4.60.0010.01510.36
4.4.50.0020.01110.36
4.4.40.0020.02010.36
4.4.30.0020.01410.36
4.4.20.0020.01210.36
4.4.10.0020.00810.36
4.4.00.0020.01710.36
4.3.110.0010.01310.36
4.3.100.0050.01010.36
4.3.90.0020.01110.36
4.3.80.0040.00810.36
4.3.70.0010.01010.36
4.3.60.0020.01310.36
4.3.50.0020.01010.36
4.3.40.0020.00810.36
4.3.30.0000.01110.36
4.3.20.0030.01110.36
4.3.10.0000.01010.36
4.3.00.0020.01210.36

preferences:
53.7 ms | 402 KiB | 5 Q