3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($handle = opendir('/in/')) { echo "Directory handle: $handle\n"; echo "Entries:\n"; /* This is the correct way to loop over the directory. */ while (false !== ($entry = readdir($handle))) { echo "$entry\n"; } /* This is the WRONG way to loop over the directory. */ while ($entry = readdir($handle)) { echo "$entry\n"; } closedir($handle); }

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.01118.43
8.3.50.0100.00821.92
8.3.40.0070.00718.54
8.3.30.0040.01118.74
8.3.20.0050.00318.54
8.3.10.0040.00419.18
8.3.00.0070.00021.85
8.2.180.0110.01116.88
8.2.170.0060.01322.96
8.2.160.0030.01420.43
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00021.03
8.2.110.0100.00020.39
8.2.100.0090.00617.78
8.2.90.0030.00619.18
8.2.80.0000.00817.97
8.2.70.0080.00317.50
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0030.00518.34
8.2.30.0080.00019.89
8.2.20.0080.00017.68
8.2.10.0040.00417.60
8.2.00.0060.00317.74
8.1.280.0180.00025.92
8.1.270.0070.00023.99
8.1.260.0030.01026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.46
8.1.230.0040.00820.96
8.1.220.0000.00818.77
8.1.210.0030.00518.90
8.1.200.0000.01017.25
8.1.190.0020.00517.40
8.1.180.0000.00918.10
8.1.170.0000.00918.66
8.1.160.0040.00418.75
8.1.150.0000.00718.65
8.1.140.0040.00417.39
8.1.130.0030.00317.74
8.1.120.0040.00417.43
8.1.110.0040.00417.30
8.1.100.0070.00017.32
8.1.90.0070.00017.37
8.1.80.0050.00317.25
8.1.70.0000.00917.36
8.1.60.0030.00617.45
8.1.50.0040.00417.39
8.1.40.0040.00417.51
8.1.30.0080.00017.50
8.1.20.0000.00817.56
8.1.10.0070.00017.45
8.1.00.0000.01117.45
8.0.300.0040.00420.08
8.0.290.0040.00417.18
8.0.280.0000.00718.42
8.0.270.0000.00717.36
8.0.260.0030.00316.81
8.0.250.0000.00716.96
8.0.240.0000.00816.89
8.0.230.0090.00016.85
8.0.220.0030.00516.99
8.0.210.0000.00716.92
8.0.200.0060.00017.00
8.0.190.0040.00416.98
8.0.180.0000.00717.01
8.0.170.0030.00316.98
8.0.160.0030.00316.98
8.0.150.0080.00017.03
8.0.140.0040.00416.90
8.0.130.0000.00613.46
8.0.120.0060.00314.54
8.0.110.0050.00214.55
8.0.100.0040.00314.54
8.0.90.0040.00315.08
8.0.80.0050.00515.13
8.0.70.0020.00715.14
8.0.60.0070.00314.52
8.0.50.0050.00514.51
8.0.30.0080.00615.51
8.0.20.0100.00315.67
8.0.10.0040.00614.61
8.0.00.0060.00615.46
7.4.330.0000.00514.66
7.4.320.0000.00916.52
7.4.300.0030.00316.43
7.4.290.0070.00016.46
7.4.280.0070.00316.42
7.4.270.0070.00016.52
7.4.260.0030.00313.28
7.4.250.0030.00714.29
7.4.240.0060.00414.33
7.4.230.0040.00514.29
7.4.220.0060.00514.78
7.4.210.0060.00815.59
7.4.200.0050.00314.26
7.4.190.0060.00214.32
7.4.180.0060.00414.21
7.4.160.0080.00214.94
7.4.150.0040.00715.12
7.4.140.0060.00615.61
7.4.130.0090.00315.18
7.4.120.0070.00515.03
7.4.110.0060.00614.67
7.4.100.0080.00314.92
7.4.90.0060.00514.79
7.4.80.0100.00415.71
7.4.70.0070.00615.01
7.4.60.0070.00815.08
7.4.50.0050.00814.83
7.4.40.0070.00715.95
7.4.30.0050.00814.84
7.4.20.0080.00514.59
7.4.10.0060.00714.51
7.4.00.0080.00514.57
7.3.330.0000.00513.13
7.3.320.0120.00212.85
7.3.310.0040.00614.04
7.3.300.0050.00513.91
7.3.290.0070.00514.38
7.3.280.0070.00715.12
7.3.270.0090.00314.86
7.3.260.0090.00415.72
7.3.250.0090.00514.86
7.3.240.0090.00514.52
7.3.230.0070.00414.60
7.3.220.0070.00313.67
7.3.210.0130.00114.50
7.3.200.0090.00415.39
7.3.190.0080.00614.84
7.3.180.0070.00814.84
7.3.170.0050.00914.79
7.3.160.0070.00714.80
7.3.150.0120.00114.50
7.3.140.0080.00614.50
7.3.130.0090.00414.38
7.3.120.0080.00514.41
7.3.110.0030.01014.29
7.3.100.0090.00414.39
7.3.90.0090.00314.65
7.3.80.0060.00814.53
7.3.70.0080.00614.49
7.3.60.0080.00514.53
7.3.50.0100.00514.49
7.3.40.0070.00514.49
7.3.30.0090.00614.51
7.3.20.0080.00515.44
7.3.10.0060.00815.20
7.3.00.0040.00715.41
7.2.340.0100.00214.07
7.2.330.0060.00714.79
7.2.320.0070.00714.70
7.2.310.0110.00415.04
7.2.300.0090.00415.11
7.2.290.0060.00815.03
7.2.280.0070.00614.78
7.2.270.0080.00514.73
7.2.260.0090.00514.68
7.2.250.0070.00814.69
7.2.240.0080.00614.70
7.2.230.0090.00514.64
7.2.220.0080.00614.63
7.2.210.0070.00614.68
7.2.200.0050.00914.71
7.2.190.0080.00614.76
7.2.180.0050.00814.66
7.2.170.0080.00614.77
7.2.160.0060.00714.87
7.2.150.0110.00315.66
7.2.140.0080.00615.76
7.2.130.0090.00515.76
7.2.120.0110.00215.83
7.2.110.0100.00315.79
7.2.100.0100.00415.76
7.2.90.0070.00715.76
7.2.80.0140.00415.88
7.2.70.0080.00715.67
7.2.60.0090.00815.93
7.2.50.0100.00415.75
7.2.40.0100.00615.79
7.2.30.0100.00415.73
7.2.20.0130.00215.87
7.2.10.0110.00315.83
7.2.00.0110.00515.86
7.1.330.0100.00514.79
7.1.320.0080.00514.77
7.1.310.0090.00514.84
7.1.300.0060.00814.75
7.1.290.0100.00414.78
7.1.280.0060.00914.76
7.1.270.0080.00614.81
7.1.260.0080.00514.75
7.1.250.0050.01014.71
7.1.240.0120.00314.76
7.1.230.0100.00314.75
7.1.220.0100.00414.72
7.1.210.0080.00714.79
7.1.200.0070.00714.92
7.1.190.0070.00814.73
7.1.180.0110.00214.74
7.1.170.0080.00714.74
7.1.160.0080.00614.72
7.1.150.0080.00514.77
7.1.140.0100.00414.71
7.1.130.0070.00714.71
7.1.120.0110.00514.75
7.1.110.0120.00314.64
7.1.100.0080.00714.70
7.1.90.0090.00414.61
7.1.80.0110.00514.79
7.1.70.0100.00315.08
7.1.60.0060.01015.62
7.1.50.0090.00815.13
7.1.40.0060.00814.70
7.1.30.0090.00414.69
7.1.20.0090.00414.68
7.1.10.0110.00614.64
7.1.00.0110.01416.21
7.0.330.0100.00414.51
7.0.320.0100.00414.54
7.0.310.0090.00414.48
7.0.300.0090.00514.47
7.0.290.0080.00614.53
7.0.280.0100.00414.55
7.0.270.0050.00814.54
7.0.260.0100.00514.53
7.0.250.0100.00414.62
7.0.240.0080.00414.55
7.0.230.0090.00514.55
7.0.220.0130.00614.54
7.0.210.0120.00214.51
7.0.200.0060.00514.88
7.0.190.0090.00414.60
7.0.180.0060.00814.51
7.0.170.0090.00414.61
7.0.160.0080.00714.50
7.0.150.0080.00514.51
7.0.140.0060.02015.99
7.0.130.0080.00514.54
7.0.120.0080.00714.63
7.0.110.0090.00614.48
7.0.100.0090.00614.52
7.0.90.0110.00314.49
7.0.80.0050.00914.46
7.0.70.0090.01215.95
7.0.60.0050.01215.92
7.0.50.0070.01815.92
7.0.40.0080.02115.67
7.0.30.0050.02315.66
7.0.20.0080.02015.56
7.0.10.0080.02015.53
7.0.00.0080.01915.58
5.6.400.0110.00214.10
5.6.390.0070.00714.15
5.6.380.0090.00514.18
5.6.370.0070.00614.18
5.6.360.0080.00614.14
5.6.350.0080.00414.18
5.6.340.0080.00514.15
5.6.330.0090.00514.20
5.6.320.0080.00414.29
5.6.310.0080.00614.16
5.6.300.0090.00614.04
5.6.290.0100.00414.10
5.6.280.0060.01915.53
5.6.270.0090.00614.13
5.6.260.0080.00414.13
5.6.250.0080.00614.10
5.6.240.0090.00414.20
5.6.230.0070.00514.27
5.6.220.0070.01015.44
5.6.210.0080.01115.47
5.6.200.0060.01415.63
5.6.190.0050.01915.57
5.6.180.0080.01815.62
5.6.170.0070.02015.55
5.6.160.0090.02015.56
5.6.150.0070.02315.55
5.6.140.0070.01915.53
5.6.130.0060.01415.52
5.6.120.0050.01515.48
5.6.110.0070.02215.47
5.6.100.0080.02115.47
5.6.90.0080.02015.54
5.6.80.0040.02215.21
5.6.70.0090.01415.41
5.6.60.0110.01515.38
5.6.50.0070.01715.36
5.6.40.0080.01815.43
5.6.30.0100.01815.36
5.6.20.0070.01915.30
5.6.10.0070.01915.26
5.6.00.0080.01915.36
5.5.380.0070.00514.14
5.5.370.0090.00514.09
5.5.360.0060.01115.26
5.5.350.0070.01215.22
5.5.340.0060.01415.38
5.5.330.0100.00915.43
5.5.320.0080.01215.43
5.5.310.0050.02515.31
5.5.300.0060.01415.39
5.5.290.0110.01715.34
5.5.280.0090.01915.36
5.5.270.0090.02015.38
5.5.260.0070.02115.34
5.5.250.0090.02015.39
5.5.240.0110.01715.40
5.5.230.0080.01815.29
5.5.220.0100.01815.31
5.5.210.0080.02115.34
5.5.200.0060.02115.21
5.5.190.0090.01815.30
5.5.180.0060.01715.14
5.5.170.0050.00813.97
5.5.160.0060.01915.15
5.5.150.0070.01715.20
5.5.140.0080.01915.21
5.5.130.0050.02315.11
5.5.120.0070.02115.12
5.5.110.0100.01715.14
5.5.100.0090.01615.17
5.5.90.0060.02015.23
5.5.80.0070.01515.25
5.5.70.0070.01215.32
5.5.60.0070.01415.22
5.5.50.0050.02115.28
5.5.40.0110.01115.19
5.5.30.0080.01215.24
5.5.20.0090.01315.26
5.5.10.0080.01815.29
5.5.00.0080.01915.26
5.4.450.0050.01613.91
5.4.440.0050.01613.87
5.4.430.0080.01713.89
5.4.420.0060.01813.89
5.4.410.0080.01413.87
5.4.400.0060.01713.79
5.4.390.0040.01913.83
5.4.380.0060.01613.82
5.4.370.0070.01413.72
5.4.360.0040.02213.86
5.4.350.0080.01713.75
5.4.340.0060.01813.76
5.4.330.0070.00412.45
5.4.320.0050.01913.84
5.4.310.0060.01713.82
5.4.300.0060.01713.70
5.4.290.0060.02013.71
5.4.280.0080.01613.77
5.4.270.0050.01413.73
5.4.260.0080.01813.76
5.4.250.0070.01913.70
5.4.240.0040.01213.76
5.4.230.0050.01913.71
5.4.220.0040.01813.71
5.4.210.0050.01613.78
5.4.200.0090.01413.73
5.4.190.0050.01213.70
5.4.180.0060.01413.76
5.4.170.0080.01413.73
5.4.160.0070.01513.73
5.4.150.0080.01713.68
5.4.140.0040.01613.26
5.4.130.0040.02013.19
5.4.120.0040.01813.28
5.4.110.0070.01513.31
5.4.100.0070.01713.31
5.4.90.0070.01713.25
5.4.80.0050.01713.24
5.4.70.0050.01913.28
5.4.60.0050.01813.36
5.4.50.0070.01513.30
5.4.40.0050.01513.24
5.4.30.0050.01413.21
5.4.20.0080.01213.22
5.4.10.0060.02013.22
5.4.00.0060.01013.10
5.3.290.0070.01813.38
5.3.280.0060.02013.26
5.3.270.0060.01313.33
5.3.260.0060.01913.34
5.3.250.0050.01913.34
5.3.240.0060.01513.27
5.3.230.0020.02313.26
5.3.220.0070.01713.27
5.3.210.0010.02413.14
5.3.200.0040.02013.13
5.3.190.0050.02113.20
5.3.180.0030.01913.40
5.3.170.0070.01413.26
5.3.160.0070.01713.34
5.3.150.0030.02013.32
5.3.140.0050.01813.20
5.3.130.0050.01813.29
5.3.120.0060.01713.30
5.3.110.0060.01313.29
5.3.100.0050.01813.16
5.3.90.0070.01513.05
5.3.80.0040.01213.05
5.3.70.0040.02013.04
5.3.60.0060.01713.14
5.3.50.0050.01813.04
5.3.40.0050.01513.12
5.3.30.0060.01613.10
5.3.20.0080.01413.04
5.3.10.0050.01912.98
5.3.00.0080.01712.89
5.2.170.0030.01512.14
5.2.160.0050.01612.17
5.2.150.0020.01812.21
5.2.140.0040.01312.08
5.2.130.0040.01412.17
5.2.120.0050.01612.17
5.2.110.0050.01212.16
5.2.100.0060.01212.18
5.2.90.0030.01512.15
5.2.80.0070.01412.10
5.2.70.0060.01412.12
5.2.60.0080.01112.07
5.2.50.0040.01312.13
5.2.40.0040.01512.17
5.2.30.0070.01212.05
5.2.20.0040.01511.99
5.2.10.0040.01512.00
5.2.00.0060.01212.03
5.1.60.0060.01111.75
5.1.50.0020.01611.77
5.1.40.0040.01211.85
5.1.30.0040.01211.79
5.1.20.0040.01411.78
5.1.10.0060.01011.72
5.1.00.0050.01311.66
5.0.50.0030.01311.58
5.0.40.0060.01011.58
5.0.30.0050.01411.58
5.0.20.0040.00911.58
5.0.10.0030.01311.58
5.0.00.0020.01611.58
4.4.90.0030.00611.58
4.4.80.0040.00611.58
4.4.70.0010.00911.58
4.4.60.0010.00811.58
4.4.50.0020.00911.58
4.4.40.0030.01311.58
4.4.30.0030.00811.58
4.4.20.0040.00611.58
4.4.10.0030.00811.58
4.4.00.0030.01211.58
4.3.110.0010.01011.58
4.3.100.0030.00711.58
4.3.90.0020.00811.58
4.3.80.0030.01211.58
4.3.70.0020.00711.58
4.3.60.0030.00711.58
4.3.50.0040.00811.58
4.3.40.0020.01111.58
4.3.30.0020.00811.58
4.3.20.0030.00911.58
4.3.10.0020.00911.58
4.3.00.0020.00711.58

preferences:
49.01 ms | 401 KiB | 5 Q